Commit ec10eccd authored by Michel Dänzer's avatar Michel Dänzer

GLX: Unreference drawables bound to the old context, not the new one.

Apart from the obvious reference counting issue, this fixes
http://bugs.freedesktop.org/show_bug.cgi?id=16867 .
parent 6ab8d601
......@@ -620,9 +620,9 @@ DoMakeCurrent(__GLXclientState *cl,
return __glXError(GLXBadContext);
}
__glXFlushContextCache();
if (!glxc->isDirect) {
__glXUnrefDrawable(glxc->drawPriv);
__glXUnrefDrawable(glxc->readPriv);
if (!prevglxc->isDirect) {
__glXUnrefDrawable(prevglxc->drawPriv);
__glXUnrefDrawable(prevglxc->readPriv);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment