diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index f26ba1d9a37..0d41fe0c43c 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -710,7 +710,7 @@ _X_EXPORT void glXSwapBuffers(Display * dpy, GLXDrawable drawable) { #ifdef GLX_USE_APPLEGL - GLXContext gc = glXGetCurrentContext(); + struct glx_context * gc = __glXGetCurrentContext(); if(gc && apple_glx_is_current_drawable(dpy, gc->driContext, drawable)) { apple_glx_swap_buffers(gc->driContext); } else {