projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b34fcc
)
glx: Destroy pixmap after destroying glx and dri drawables
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 9 Sep 2010 00:55:02 +0000
(20:55 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 9 Sep 2010 00:55:24 +0000
(20:55 -0400)
Now that we suppress BadDrawable from DRI2DestroyDrawable, this doesn't
matter, but we would get that error before when destroying pbuffers.
src/glx/glx_pbuffer.c
patch
|
blob
|
history
diff --git
a/src/glx/glx_pbuffer.c
b/src/glx/glx_pbuffer.c
index d065f4bb6c02609014b86094e49507d741e1f70a..d1cb66b87cac825d6fa0f3b8b40775f8c6aebb83 100644
(file)
--- a/
src/glx/glx_pbuffer.c
+++ b/
src/glx/glx_pbuffer.c
@@
-222,10
+222,10
@@
DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable)
__GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable);
if (pdraw != NULL) {
- if (destroy_xdrawable)
- XFreePixmap(pdraw->psc->dpy, pdraw->xDrawable);
(*pdraw->destroyDrawable) (pdraw);
__glxHashDelete(priv->drawHash, drawable);
+ if (destroy_xdrawable)
+ XFreePixmap(pdraw->psc->dpy, pdraw->xDrawable);
}
}