Commit 451dede7 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Clear dirty flags after calling all the state handlers in context_apply_draw_state().

parent aaf4ef6e
......@@ -3944,11 +3944,12 @@ static BOOL context_apply_draw_state(struct wined3d_context *context,
unsigned int state_id = base + wined3d_bit_scan(&dirty_mask);
state_table[state_id].apply(context, state, state_id);
context->dirty_graphics_states[i] &= ~(1u << (state_id - base));
}
base += sizeof(dirty_mask) * CHAR_BIT;
}
memset(context->dirty_graphics_states, 0, sizeof(context->dirty_graphics_states));
if (context->shader_update_mask & ~(1u << WINED3D_SHADER_TYPE_COMPUTE))
{
device->shader_backend->shader_select(device->shader_priv, context, state);
......
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