Commit 107fa122 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Only set valid transform states in wined3d_device_context_set_state().

parent 87ed274d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment