From: Marek Olšák Date: Sat, 17 Dec 2011 14:13:37 +0000 (+0100) Subject: drisw: remove unused variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5016b09f897dd9d93ee1fc86949e0c3d7bd3b36f;p=mesa.git drisw: remove unused variable --- diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index fbc6be272c0..f6aeda90abb 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -304,10 +304,11 @@ drisw_bind_tex_image(Display * dpy, struct glx_context *gc = __glXGetCurrentContext(); struct drisw_context *pcp = (struct drisw_context *) gc; __GLXDRIdrawable *base = GetGLXDRIDrawable(dpy, drawable); - struct glx_display *dpyPriv = __glXInitialize(dpy); struct drisw_drawable *pdraw = (struct drisw_drawable *) base; struct drisw_screen *psc; + __glXInitialize(dpy); + if (pdraw != NULL) { psc = (struct drisw_screen *) base->psc;