wined3d: Flush after accessing the front buffer in flush_to_framebuffer_drawpixels().

This commit is contained in:
Henri Verbeet 2011-04-11 20:55:15 +02:00 committed by Alexandre Julliard
parent 55e957a31a
commit 17c51d49b7

View file

@ -2053,6 +2053,12 @@ static void flush_to_framebuffer_drawpixels(IWineD3DSurfaceImpl *surface,
checkGLcall("glPixelStorei(GL_UNPACK_ROW_LENGTH, 0)");
LEAVE_GL();
if (wined3d_settings.strict_draw_ordering
|| (surface->container.type == WINED3D_CONTAINER_SWAPCHAIN
&& surface->container.u.swapchain->front_buffer == surface))
wglFlush();
context_release(context);
}