Module: wine Branch: master Commit: b24c409ceaba3d5f93e59c1394afee1aad8095ba URL: http://source.winehq.org/git/wine.git/?a=commit;h=b24c409ceaba3d5f93e59c1394...
Author: Stefan Dösinger stefan@codeweavers.com Date: Wed Jul 2 15:27:46 2008 -0500
wined3d: Initialize the state table before filling it.
---
dlls/wined3d/state.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 1e698d6..41c5828 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -5418,6 +5418,11 @@ void compile_state_table(struct StateEntry *StateTable,
memset(multistate_funcs, 0, sizeof(multistate_funcs));
+ for(i = 0; i < STATE_HIGHEST + 1; i++) { + StateTable[i].representative = 0; + StateTable[i].apply = state_undefined; + } + for(type = 0; type < 3; type++) { /* This switch decides the order in which the states are applied */ switch(type) {