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:
Henri Verbeet 2021-07-01 16:56:34 +02:00 committed by Alexandre Julliard
parent 87ed274d98
commit 107fa122cc
1 changed files with 2 additions and 1 deletions

View File

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