apple: applegl_destroy_context: Pass along the correct display
authorJeremy Huddleston <jeremyhu@apple.com>
Mon, 13 Jun 2011 19:00:55 +0000 (12:00 -0700)
committerJeremy Huddleston <jeremyhu@apple.com>
Mon, 13 Jun 2011 21:51:01 +0000 (14:51 -0700)
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
src/glx/applegl_glx.c

index 8e5bc0b66c0c55433fc35df7c2966b7314ecede3..92c785f988a287525b3dbba10bd7daa899f892ee 100644 (file)
@@ -43,7 +43,7 @@
 static void
 applegl_destroy_context(struct glx_context *gc)
 {
-   apple_glx_destroy_context(&gc->driContext, gc->currentDpy);
+   apple_glx_destroy_context(&gc->driContext, gc->psc->dpy);
 }
 
 static int