glxcmds: Fix a typo in the __APPLE__ codepath
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>
Thu, 17 Aug 2017 22:08:36 +0000 (15:08 -0700)
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>
Thu, 17 Aug 2017 22:13:33 +0000 (15:13 -0700)
s/DummyContext/dummyContext/

Regressed-in: 5d9b50e596c9d81c37ce0844ae0f8c9da3f6bea6
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
src/glx/glxcmds.c

index 290c86c6cd22d113e8b809e19d047079f08b6342..44992f18cf0c489a006129ef38483171baa18807 100644 (file)
@@ -820,7 +820,7 @@ glXSwapBuffers(Display * dpy, GLXDrawable drawable)
 {
 #ifdef GLX_USE_APPLEGL
    struct glx_context * gc = __glXGetCurrentContext();
-   if(gc != &DummyContext && apple_glx_is_current_drawable(dpy, gc->driContext, drawable)) {
+   if(gc != &dummyContext && apple_glx_is_current_drawable(dpy, gc->driContext, drawable)) {
       apple_glx_swap_buffers(gc->driContext);
    } else {
       __glXSendError(dpy, GLXBadCurrentWindow, 0, X_GLXSwapBuffers, false);