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

Alexandre Julliard julliard at winehq.org
Tue Apr 12 11:07:34 CDT 2011


Module: wine
Branch: master
Commit: 17c51d49b765dfc260f42bdda934c56c7b82241a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=17c51d49b765dfc260f42bdda934c56c7b82241a

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Apr 11 20:55:15 2011 +0200

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

---

 dlls/wined3d/surface.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 102ddc9..8d50793 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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);
 }
 




More information about the wine-cvs mailing list