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
e93e943b
Commit
e93e943b
authored
Apr 19, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_bit_scan() in context_unload_numbered_arrays().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8dc789fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
context.c
dlls/wined3d/context.c
+2
-4
No files found.
dlls/wined3d/context.c
View file @
e93e943b
...
...
@@ -5273,15 +5273,13 @@ static void context_unload_numbered_array(struct wined3d_context *context, unsig
context
->
numbered_array_mask
&=
~
(
1u
<<
i
);
}
/* This should match any arrays loaded in loadNumberedArrays.
* TODO: Only load / unload arrays if we have to. */
static
void
context_unload_numbered_arrays
(
struct
wined3d_context
*
context
)
{
unsigned
int
i
;
/* Disable any attributes. */
for
(
i
=
0
;
i
<
context
->
gl_info
->
limits
.
vertex_attribs
;
++
i
)
while
(
context
->
numbered_array_mask
)
{
i
=
wined3d_bit_scan
(
&
context
->
numbered_array_mask
);
context_unload_numbered_array
(
context
,
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