From 5016b09f897dd9d93ee1fc86949e0c3d7bd3b36f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 17 Dec 2011 15:13:37 +0100 Subject: [PATCH] drisw: remove unused variable --- src/glx/drisw_glx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2