summaryrefslogtreecommitdiff
path: root/debian/patches/03_handle-sync-and-dont-unlock-display.patch
blob: d29769e433045bd27f243f3f4beef225c59c800e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Patch that fixes Debian bug #391681.

This patch by Josh Triplett.
Submitted to Mesa and applied (post 6.5.1).

--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -1016,11 +1016,11 @@
 	if (!_XReply(dpy, (xReply*) &reply, 0, False)) {
 	    /* Something is busted. Punt. */
 	    UnlockDisplay(dpy);
+	    SyncHandle();
 	    FreeScreenConfigs(priv);
 	    return GL_FALSE;
 	}
 
-	UnlockDisplay(dpy);
 	if (!reply.numVisuals) {
 	    /* This screen does not support GL rendering */
 	    UnlockDisplay(dpy);