i915: Fix wrong pointer to cleanup
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Mon, 7 Jul 2008 13:49:59 +0000 (15:49 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Mon, 7 Jul 2008 13:56:19 +0000 (15:56 +0200)
src/gallium/winsys/egl_drm/intel/intel_egl.c

index 98928979e756781b75a7cba0a9db8a5a128fa98c..a476490b90361b9558f680cd6eac38015f0c3371 100644 (file)
@@ -214,7 +214,7 @@ drm_terminate(_EGLDriver *drv, EGLDisplay dpy)
 
        free(drm_drv->device);
 
-       _eglCleanupDisplay(drv);
+       _eglCleanupDisplay(_eglLookupDisplay(dpy));
        free(drm_drv);
 
        return EGL_TRUE;