glx: apple specific occurences of dummyContext check
[mesa.git] / src / glx / apple / apple_xgl_api_viewport.c
index 281c90c6bbdc95f86e26146b7bc85654789be580..c40061df490f304a4c232e9b24f7cd6d19cebfb2 100644 (file)
@@ -41,7 +41,7 @@ __applegl_glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
    struct glx_context *gc = __glXGetCurrentContext();
    Display *dpy = glXGetCurrentDisplay();
 
-   if (gc && gc->driContext)
+   if (gc != &dummyContext && gc->driContext)
       apple_glx_context_update(dpy, gc->driContext);
 
    __ogl_framework_api->Viewport(x, y, width, height);