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
d6a7918a
Commit
d6a7918a
authored
Jan 27, 2022
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_bit_scan() in draw_primitive_immediate_mode().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d89bfc39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
context_gl.c
dlls/wined3d/context_gl.c
+3
-5
No files found.
dlls/wined3d/context_gl.c
View file @
d6a7918a
...
...
@@ -4708,7 +4708,7 @@ static void draw_primitive_immediate_mode(struct wined3d_context_gl *context_gl,
* them is printed after decoding the vertex declaration. */
for
(
vertex_idx
=
0
;
vertex_idx
<
vertex_count
;
++
vertex_idx
)
{
u
nsigned
in
t
tmp_tex_mask
;
u
int32_
t
tmp_tex_mask
;
stride_idx
=
get_stride_idx
(
idx_data
,
idx_size
,
base_vertex_idx
,
start_idx
,
vertex_idx
);
...
...
@@ -4747,11 +4747,9 @@ static void draw_primitive_immediate_mode(struct wined3d_context_gl *context_gl,
}
tmp_tex_mask
=
tex_mask
;
for
(
texture_idx
=
0
;
tmp_tex_mask
;
tmp_tex_mask
>>=
1
,
++
texture_idx
)
while
(
tmp_tex_mask
)
{
if
(
!
(
tmp_tex_mask
&
1
))
continue
;
texture_idx
=
wined3d_bit_scan
(
&
tmp_tex_mask
);
coord_idx
=
state
->
texture_states
[
texture_idx
][
WINED3D_TSS_TEXCOORD_INDEX
];
ptr
=
tex_coords
[
coord_idx
]
+
(
stride_idx
*
si
->
elements
[
WINED3D_FFP_TEXCOORD0
+
coord_idx
].
stride
);
ops
->
texcoord
[
si
->
elements
[
WINED3D_FFP_TEXCOORD0
+
coord_idx
].
format
->
emit_idx
](
...
...
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