Commit 6a5c3725 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Only flush valid contexts in wined3d_cs_exec_flush().

parent fc5bd1b4
......@@ -830,6 +830,7 @@ static void wined3d_cs_exec_flush(struct wined3d_cs *cs, const void *data)
struct wined3d_context *context;
context = context_acquire(cs->device, NULL, 0);
if (context->valid)
context->gl_info->gl_ops.gl.p_glFlush();
context_release(context);
}
......
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