Commit 87ed274d authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

Somewhat similar to commit 0170bb0e, setting invalid render states ends up invalidating invalid state IDs. Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent d55348d2
......@@ -1774,6 +1774,7 @@ void CDECL wined3d_device_context_set_state(struct wined3d_device_context *conte
for (i = 0; i < WINEHIGHEST_RENDER_STATE + 1; ++i)
{
if (context->device->state_table[STATE_RENDER(i)].representative)
wined3d_device_context_emit_set_render_state(context, i, state->render_states[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