wined3d: Only set valid transform states in wined3d_device_context_set_state().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
87ed274d98
commit
107fa122cc
|
@ -1750,7 +1750,8 @@ void CDECL wined3d_device_context_set_state(struct wined3d_device_context *conte
|
|||
|
||||
for (i = 0; i < WINED3D_HIGHEST_TRANSFORM_STATE + 1; ++i)
|
||||
{
|
||||
wined3d_device_context_emit_set_transform(context, i, state->transforms + i);
|
||||
if (context->device->state_table[STATE_TRANSFORM(i)].representative)
|
||||
wined3d_device_context_emit_set_transform(context, i, state->transforms + i);
|
||||
}
|
||||
|
||||
for (i = 0; i < WINED3D_MAX_CLIP_DISTANCES; ++i)
|
||||
|
|
Loading…
Reference in New Issue