From: Brian Paul Date: Wed, 4 Oct 2006 16:22:24 +0000 (+0000) Subject: in MakeContextCurrent() use old display pointer for __glXSetupForCommand(), bug 8443 X-Git-Tag: 062012170305~20413 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25e441e8e92688e596e4976b32818141d9fa3aab;p=profile%2Fivi%2Fmesa.git in MakeContextCurrent() use old display pointer for __glXSetupForCommand(), bug 8443 --- diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index d4edf6d..ab2795e 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; }