diff options
-rw-r--r-- | src/glx/x11/glxext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index d4edf6d85d9..ab2795efbe5 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -1582,7 +1582,7 @@ USED static Bool MakeContextCurrent(Display *dpy, GLXDrawable draw, } oldGC = __glXGetCurrentContext(); - oldOpcode = (gc == oldGC) ? opcode : __glXSetupForCommand(dpy); + oldOpcode = (gc == oldGC) ? opcode : __glXSetupForCommand(oldGC->currentDpy); if (!oldOpcode) { return GL_FALSE; } |