Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
074dd545
Commit
074dd545
authored
Jan 20, 2022
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_mask_from_size() in wined3d_ffp_get_vs_settings().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8b4ae595
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.c
dlls/wined3d/utils.c
+2
-2
No files found.
dlls/wined3d/utils.c
View file @
074dd545
...
...
@@ -6734,7 +6734,7 @@ void wined3d_ffp_get_vs_settings(const struct wined3d_context *context,
settings
->
texgen
[
i
]
=
state
->
texture_states
[
i
][
WINED3D_TSS_TEXCOORD_INDEX
];
}
if
(
d3d_info
->
full_ffp_varyings
)
settings
->
texcoords
=
(
1u
<<
WINED3D_MAX_TEXTURES
)
-
1
;
settings
->
texcoords
=
wined3d_mask_from_size
(
WINED3D_MAX_TEXTURES
)
;
if
(
d3d_info
->
emulated_flatshading
)
settings
->
flatshading
=
state
->
render_states
[
WINED3D_RS_SHADEMODE
]
==
WINED3D_SHADE_FLAT
;
...
...
@@ -6783,7 +6783,7 @@ void wined3d_ffp_get_vs_settings(const struct wined3d_context *context,
settings
->
texgen
[
i
]
=
state
->
texture_states
[
i
][
WINED3D_TSS_TEXCOORD_INDEX
];
}
if
(
d3d_info
->
full_ffp_varyings
)
settings
->
texcoords
=
(
1u
<<
WINED3D_MAX_TEXTURES
)
-
1
;
settings
->
texcoords
=
wined3d_mask_from_size
(
WINED3D_MAX_TEXTURES
)
;
for
(
i
=
0
;
i
<
WINED3D_MAX_ACTIVE_LIGHTS
;
++
i
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment