diff options
author | Jeremy Huddleston <[email protected]> | 2011-06-06 11:15:32 -0400 |
---|---|---|
committer | Jeremy Huddleston <[email protected]> | 2011-06-06 11:17:38 -0400 |
commit | 7c5f37c032231ad144a8a5c5a0b18f3e26c0aea7 (patch) | |
tree | e2a23479a9c8e7c5ebd02e5dde5766b04e32126f /src/glx | |
parent | f4537f99cc83cb8133f66dc97c613e95dc0fe162 (diff) |
apple: More fixes for compilation failures
Signed-off-by: Jeremy Huddleston <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/applegl_glx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/glx/applegl_glx.c b/src/glx/applegl_glx.c index 660566f3171..ff899df3770 100644 --- a/src/glx/applegl_glx.c +++ b/src/glx/applegl_glx.c @@ -52,7 +52,7 @@ applegl_bind_context(struct glx_context *gc, struct glx_context *old, { Display *dpy = gc->psc->dpy; bool error = apple_glx_make_current_context(dpy, - (oldGC && oldGC != &dummyContext) ? oldGC->driContext : NULL + (old && old != &dummyContext) ? old->driContext : NULL, gc ? gc->driContext : NULL, draw); apple_glx_diagnostic("%s: error %s\n", __func__, error ? "YES" : "NO"); @@ -93,7 +93,7 @@ static const struct glx_context_vtable applegl_context_vtable = { struct glx_context * applegl_create_context(struct glx_screen *psc, - struct glx_config *mode, + struct glx_config *config, struct glx_context *shareList, int renderType) { struct glx_context *gc; @@ -108,7 +108,7 @@ applegl_create_context(struct glx_screen *psc, if (gc == NULL) return NULL; - if (!glx_context_init(gc, psc, mode)) { + if (!glx_context_init(gc, psc, config)) { Xfree(gc); return NULL; } @@ -120,7 +120,7 @@ applegl_create_context(struct glx_screen *psc, gc->do_destroy = False; /* TODO: darwin: Integrate with above to do indirect */ - if(apple_glx_create_context(&gc->driContext, dpy, screen, fbconfig, + if(apple_glx_create_context(&gc->driContext, dpy, screen, config, shareList ? shareList->driContext : NULL, &errorcode, &x11error)) { __glXSendError(dpy, errorcode, 0, X_GLXCreateContext, x11error); @@ -129,8 +129,8 @@ applegl_create_context(struct glx_screen *psc, } gc->currentContextTag = -1; - gc->mode = fbconfig; - gc->isDirect = 1; + gc->config = config; + gc->isDirect = GL_TRUE; gc->xid = 1; /* Just something not None, so we know when to destroy * it in MakeContextCurrent. */ |