From: Adam Jackson Date: Wed, 1 Jun 2011 15:33:48 +0000 (-0400) Subject: glx: Fix another case of using req outside of the display lock X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=776a2a54473194e2f0926902276a1f880cded91f;p=mesa.git glx: Fix another case of using req outside of the display lock Reviewed-by: Brian Paul Signed-off-by: Adam Jackson --- diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index dbfa0edff98..8b4151d0b4b 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -644,13 +644,13 @@ glXCreateGLXPixmap(Display * dpy, XVisualInfo * vis, Pixmap pixmap) if (psc->driScreen == NULL) break; config = glx_config_find_visual(psc->visuals, vis->visualid); - pdraw = psc->driScreen->createDrawable(psc, pixmap, req->glxpixmap, config); + pdraw = psc->driScreen->createDrawable(psc, pixmap, xid, config); if (pdraw == NULL) { fprintf(stderr, "failed to create pixmap\n"); break; } - if (__glxHashInsert(priv->drawHash, req->glxpixmap, pdraw)) { + if (__glxHashInsert(priv->drawHash, xid, pdraw)) { (*pdraw->destroyDrawable) (pdraw); return None; /* FIXME: Check what we're supposed to do here... */ }