Commit 6dd054ca authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Flush the GL context before switching away from it.

We might end up not using the old context anymore after that and the GL implementation is allowed to delay executing commands indefinitely if we don't flush. Signed-off-by: 's avatarMatteo Bruni <mbruni@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 7223330f
......@@ -1129,6 +1129,11 @@ BOOL context_set_current(struct wined3d_context *ctx)
}
else
{
if (wglGetCurrentContext())
{
TRACE("Flushing context %p before switching to %p.\n", old, ctx);
glFlush();
}
old->current = 0;
}
}
......
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