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
80eef003
Commit
80eef003
authored
Apr 03, 2022
by
Matteo Bruni
Committed by
Alexandre Julliard
May 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add some state table consistency checking to context_invalidate_state().
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
parent
192695d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
context.c
dlls/wined3d/context.c
+3
-0
No files found.
dlls/wined3d/context.c
View file @
80eef003
...
@@ -78,6 +78,9 @@ void context_invalidate_state(struct wined3d_context *context, unsigned int stat
...
@@ -78,6 +78,9 @@ void context_invalidate_state(struct wined3d_context *context, unsigned int stat
unsigned
int
representative
=
context
->
state_table
[
state_id
].
representative
;
unsigned
int
representative
=
context
->
state_table
[
state_id
].
representative
;
unsigned
int
index
,
shift
;
unsigned
int
index
,
shift
;
if
(
!
representative
)
ERR
(
"Invalidating representative 0, state_id %u.
\n
"
,
state_id
);
index
=
representative
/
(
sizeof
(
*
context
->
dirty_graphics_states
)
*
CHAR_BIT
);
index
=
representative
/
(
sizeof
(
*
context
->
dirty_graphics_states
)
*
CHAR_BIT
);
shift
=
representative
&
((
sizeof
(
*
context
->
dirty_graphics_states
)
*
CHAR_BIT
)
-
1
);
shift
=
representative
&
((
sizeof
(
*
context
->
dirty_graphics_states
)
*
CHAR_BIT
)
-
1
);
context
->
dirty_graphics_states
[
index
]
|=
(
1u
<<
shift
);
context
->
dirty_graphics_states
[
index
]
|=
(
1u
<<
shift
);
...
...
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