From 55e957a31a8fea55a27285483202723db06407bc Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 11 Apr 2011 20:55:14 +0200 Subject: [PATCH] wined3d: Flush after accessing the front buffer in surface_blt_fbo(). --- dlls/wined3d/surface.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index c2d92ed7c1..102ddc970e 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -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); } -- 2.32.0.93.g670b81a890