summaryrefslogtreecommitdiff
path: root/src/glx/x11
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-10-04 16:22:24 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-10-04 16:22:24 +0000
commit25e441e8e92688e596e4976b32818141d9fa3aab (patch)
treeb97533864cf7b524a74d0d73297a5c4f951f6a02 /src/glx/x11
parent5ed4e35ba5d65c5b1fff8b2da0270b74ba1a065e (diff)
in MakeContextCurrent() use old display pointer for __glXSetupForCommand(), bug 8443
Diffstat (limited to 'src/glx/x11')
-rw-r--r--src/glx/x11/glxext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index d4edf6d85d..ab2795efbe 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;
}