Commit 83544c4c authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Call glFlush() through gl_info.gl_ops.

parent 055d3ff5
......@@ -1296,8 +1296,9 @@ BOOL context_set_current(struct wined3d_context *ctx)
{
if (wglGetCurrentContext())
{
const struct wined3d_gl_info *gl_info = old->gl_info;
TRACE("Flushing context %p before switching to %p.\n", old, ctx);
glFlush();
gl_info->gl_ops.gl.p_glFlush();
}
old->current = 0;
}
......@@ -1316,7 +1317,7 @@ BOOL context_set_current(struct wined3d_context *ctx)
return FALSE;
ctx->current = 1;
}
else if(wglGetCurrentContext())
else if (wglGetCurrentContext())
{
TRACE("Clearing current D3D context.\n");
if (!wglMakeCurrent(NULL, NULL))
......
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