Henri Verbeet : wined3d: Verify state representatives represent themselves.

Alexandre Julliard julliard at winehq.org
Fri Apr 2 10:17:10 CDT 2010


Module: wine
Branch: master
Commit: ef34b0ba069078716eff4691c4f0a42fd46458f1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ef34b0ba069078716eff4691c4f0a42fd46458f1

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Apr  1 21:28:50 2010 +0200

wined3d: Verify state representatives represent themselves.

This ensures there's no multilevel indirection in the state table.

---

 dlls/wined3d/state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index ddf4f77..893e0ed 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -5665,7 +5665,7 @@ static void validate_state_table(struct StateEntry *state_table)
         DWORD rep = state_table[i].representative;
         if (rep)
         {
-            if (!state_table[rep].representative)
+            if (state_table[rep].representative != rep)
             {
                 ERR("State %s (%#x) has invalid representative %s (%#x).\n",
                         debug_d3dstate(i), i, debug_d3dstate(rep), rep);




More information about the wine-cvs mailing list