[PATCH 2/6] wined3d: Use the rep instead of the apply function to determine if a state is used.

Henri Verbeet hverbeet at codeweavers.com
Thu Apr 1 04:34:45 CDT 2010


---
 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 04de86f..3602b83 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -5723,7 +5723,7 @@ HRESULT compile_state_table(struct StateEntry *StateTable, APPLYSTATEFUNC **dev_
              * applying later lines, but do not record anything in the state
              * table
              */
-            if(!cur[i].content.apply) continue;
+            if (!cur[i].content.representative) continue;
 
             handlers = num_handlers(multistate_funcs[cur[i].state]);
             multistate_funcs[cur[i].state][handlers] = cur[i].content.apply;
-- 
1.6.4.4




More information about the wine-patches mailing list