glx: Move drawHash to display private
The XIDs are display wide so the natural location of the hash is here. This way we don't have to lookup in each of the screen hashes.
This commit is contained in:
@@ -202,7 +202,7 @@ CreateDRIDrawable(Display *dpy, const __GLcontextModes *fbconfig,
|
||||
return;
|
||||
}
|
||||
|
||||
if (__glxHashInsert(psc->drawHash, glxdrawable, pdraw)) {
|
||||
if (__glxHashInsert(priv->drawHash, glxdrawable, pdraw)) {
|
||||
(*pdraw->destroyDrawable) (pdraw);
|
||||
return; /* FIXME: Check what we're supposed to do here... */
|
||||
}
|
||||
@@ -223,7 +223,7 @@ DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable)
|
||||
if (destroy_xdrawable)
|
||||
XFreePixmap(psc->dpy, pdraw->xDrawable);
|
||||
(*pdraw->destroyDrawable) (pdraw);
|
||||
__glxHashDelete(psc->drawHash, drawable);
|
||||
__glxHashDelete(priv->drawHash, drawable);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user