OSDN Git Service

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 8e5bc0b..92c785f 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