Matteo Bruni : wined3d: Add some state table consistency checking to context_invalidate_state().
Alexandre Julliard
julliard at winehq.org
Tue May 24 15:55:00 CDT 2022
Module: wine
Branch: master
Commit: 80eef0039b0e5bdb11a9343312325d1745bfcc60
URL: https://source.winehq.org/git/wine.git/?a=commit;h=80eef0039b0e5bdb11a9343312325d1745bfcc60
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Sun Apr 3 17:31:43 2022 +0200
wined3d: Add some state table consistency checking to context_invalidate_state().
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
dlls/wined3d/context.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 8c4277bc7ca..f9af58936a6 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -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 index, shift;
+ if (!representative)
+ ERR("Invalidating representative 0, state_id %u.\n", state_id);
+
index = representative / (sizeof(*context->dirty_graphics_states) * CHAR_BIT);
shift = representative & ((sizeof(*context->dirty_graphics_states) * CHAR_BIT) - 1);
context->dirty_graphics_states[index] |= (1u << shift);
More information about the wine-cvs
mailing list