wined3d: Initialize the state table before filling it.

This commit is contained in:
Stefan Dösinger 2008-07-02 15:27:46 -05:00 committed by Alexandre Julliard
parent eebed38b5b
commit b24c409cea
1 changed files with 5 additions and 0 deletions

View File

@ -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) {