From 5016b09f897dd9d93ee1fc86949e0c3d7bd3b36f Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 17 Dec 2011 15:13:37 +0100 Subject: drisw: remove unused variable --- src/glx/drisw_glx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/glx/drisw_glx.c') 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; -- cgit v1.2.3