wined3d: Prune unsupported world matrix transform states.

This commit is contained in:
Henri Verbeet 2010-04-13 20:46:28 +02:00 committed by Alexandre Julliard
parent 71d484303a
commit 43e89cb981

View file

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