diff options
author | Brian Paul <[email protected]> | 2006-10-04 16:22:24 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-10-04 16:22:24 +0000 |
commit | 25e441e8e92688e596e4976b32818141d9fa3aab (patch) | |
tree | b97533864cf7b524a74d0d73297a5c4f951f6a02 /src/glx/x11 | |
parent | 5ed4e35ba5d65c5b1fff8b2da0270b74ba1a065e (diff) |
in MakeContextCurrent() use old display pointer for __glXSetupForCommand(), bug 8443
Diffstat (limited to 'src/glx/x11')
-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; } |