Mesa (17.2): glxcmds: Fix a typo in the __APPLE__ codepath

Jeremy Huddleston jeremyhu at kemper.freedesktop.org
Thu Aug 17 22:48:46 UTC 2017


Module: Mesa
Branch: 17.2
Commit: cc8ae8842b97bad48280b51d770d4291be575097
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cc8ae8842b97bad48280b51d770d4291be575097

Author: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
Date:   Thu Aug 17 15:08:36 2017 -0700

glxcmds: Fix a typo in the __APPLE__ codepath

s/DummyContext/dummyContext/

Regressed-in: 5d9b50e596c9d81c37ce0844ae0f8c9da3f6bea6
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
(cherry picked from commit c1c4c18a80bb36946b1596f14c0397d4fb029f6e)

---

 src/glx/glxcmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 290c86c6cd..44992f18cf 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 != &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);




More information about the mesa-commit mailing list