[Bug 10234] opengl problems ( commit 00633e37bcc8da1032f34ea2d87814739de07db4)

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Oct 31 13:26:25 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=10234





--- Comment #14 from Alex Romosan <romosan at sycorax.lbl.gov>  2007-10-31 13:26:24 ---
(In reply to comment #8)
> The log seems to indicate it's setting a NULL context right before calling
> glFlush, which causes the crash (you can't make GL calls like that without a
> context set). I can't see anything in the log which would cause the program to
> do that, nor can I see why that commit would change it.

with this patch applied:

--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -2053,7 +2053,8 @@ static void WINAPI X11DRV_wglFlush(void)
     sync_context(ctx);
     pglFlush();
     wine_tsx11_unlock();
-    ExtEscape(ctx->hdc, X11DRV_ESCAPE, sizeof(code), (LPSTR)&code, 0, NULL );
+    if (ctx)
+      ExtEscape(ctx->hdc, X11DRV_ESCAPE, sizeof(code), (LPSTR)&code, 0, NULL
);
 }

tracked runs fine. you seem to believe the context should be set but in this
case it's not.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list