[PATCH] Flush GL calls after drawing to the drawable. This fixes apps that use multiple GL contexts. An example of this is bug 9826.
Roderick Colenbrander
thunderbird2k at gmx.net
Thu Nov 8 16:08:07 CST 2007
---
dlls/wined3d/surface.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 50e73fd..ebf9db0 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3572,6 +3572,9 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
glDisable(GL_TEXTURE_CUBE_MAP_ARB);
checkGLcall("glDisable(GL_TEXTURE_CUBE_MAP_ARB)");
}
+
+ /* Make sure to flush the buffers. This is needed in apps like Red Alert II and Tiberian SUN that use multiple WGL contexts. */
+ glFlush();
LEAVE_GL();
}
--
1.5.2.4
--========GMX146641194561618232943--
More information about the wine-patches
mailing list