apple: Finish build fixes for applegl_glx.c
authorJeremy Huddleston <jeremyhu@apple.com>
Mon, 6 Jun 2011 15:27:19 +0000 (11:27 -0400)
committerJeremy Huddleston <jeremyhu@apple.com>
Mon, 6 Jun 2011 15:27:19 +0000 (11:27 -0400)
libGL.dylib now *builds* on darwin.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
src/glx/applegl_glx.c

index ff899df377098df2bb496db0b04dccc798ee7d18..9b8605f4075c2028ea463998f9b035ce58d3b962 100644 (file)
@@ -99,7 +99,8 @@ applegl_create_context(struct glx_screen *psc,
    struct glx_context *gc;
    int errorcode;
    bool x11error;
-   Display *dpy;
+   Display *dpy = psc->dpy;
+   int screen = psc->scr;
 
    /* TODO: Integrate this with apple_glx_create_context and make
     * struct apple_glx_context inherit from struct glx_context. */
@@ -113,8 +114,6 @@ applegl_create_context(struct glx_screen *psc,
       return NULL;
    }
 
-   dpy = gc->psc->dpy;
-
    gc->vtable = &applegl_context_vtable;
    gc->driContext = NULL;
    gc->do_destroy = False;