diff options
author | Tapani Pälli <[email protected]> | 2016-06-07 13:33:34 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2016-08-15 09:24:10 +0300 |
commit | 5d9b50e596c9d81c37ce0844ae0f8c9da3f6bea6 (patch) | |
tree | 33c11b4c897587e5a3780dabbc5e82088dfed41b /src/glx/glxcmds.c | |
parent | 2e3f067458e4a70da91b27fab61ef3d292ded4cf (diff) |
glx: apple specific occurences of dummyContext check
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Jeremy Huddleston Sequoia <[email protected]>
Cc: Jeremy Huddleston Sequoia <[email protected]>
Diffstat (limited to 'src/glx/glxcmds.c')
-rw-r--r-- | src/glx/glxcmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 8191da03616..ebb8bc6af7d 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -820,7 +820,7 @@ glXSwapBuffers(Display * dpy, GLXDrawable drawable) { #ifdef GLX_USE_APPLEGL struct glx_context * gc = __glXGetCurrentContext(); - if(gc && 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); |