summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/winsys/egl_drm/intel/intel_egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/egl_drm/intel/intel_egl.c b/src/gallium/winsys/egl_drm/intel/intel_egl.c
index 98928979e75..a476490b903 100644
--- a/src/gallium/winsys/egl_drm/intel/intel_egl.c
+++ b/src/gallium/winsys/egl_drm/intel/intel_egl.c
@@ -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;