Henri Verbeet : wined3d: Prune unsupported world matrix transform states.

Alexandre Julliard julliard at winehq.org
Wed Apr 14 11:24:56 CDT 2010


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Apr 13 20:46:28 2010 +0200

wined3d: Prune unsupported world matrix transform states.

---

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

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index f94aac5..bfde5e4 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -5647,6 +5647,14 @@ static void prune_invalid_states(struct StateEntry *state_table, const struct wi
         state_table[i].representative = 0;
         state_table[i].apply = state_undefined;
     }
+
+    start = STATE_TRANSFORM(WINED3DTS_WORLDMATRIX(gl_info->limits.blends));
+    last = STATE_TRANSFORM(WINED3DTS_WORLDMATRIX(255));
+    for (i = start; i <= last; ++i)
+    {
+        state_table[i].representative = 0;
+        state_table[i].apply = state_undefined;
+    }
 }
 
 static void validate_state_table(struct StateEntry *state_table)




More information about the wine-cvs mailing list