in MakeContextCurrent() use old display pointer for __glXSetupForCommand(), bug 8443

This commit is contained in:
Brian Paul 2006-10-04 16:22:24 +00:00
parent 5ed4e35ba5
commit 25e441e8e9

View file

@ -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;
}