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

oldstable
Henri Verbeet 2011-04-11 20:55:14 +02:00 committed by Alexandre Julliard
parent 68c4a1b61a
commit 55e957a31a
1 changed files with 4 additions and 1 deletions

View File

@ -3456,7 +3456,10 @@ static void surface_blt_fbo(IWineD3DDeviceImpl *device, const WINED3DTEXTUREFILT
LEAVE_GL();
if (wined3d_settings.strict_draw_ordering) wglFlush(); /* Flush to ensure ordering across contexts. */
if (wined3d_settings.strict_draw_ordering
|| (dst_location == SFLAG_INDRAWABLE
&& dst_surface->container.u.swapchain->front_buffer == dst_surface))
wglFlush();
context_release(context);
}