diff --git a/core/wsi/egl.cpp b/core/wsi/egl.cpp index 6a6bd7909..06d9ebc00 100644 --- a/core/wsi/egl.cpp +++ b/core/wsi/egl.cpp @@ -190,9 +190,9 @@ void EGLGraphicsContext::term() eglDestroyContext(display, context); if (surface != EGL_NO_SURFACE) eglDestroySurface(display, surface); -#ifdef TARGET_PANDORA if (display != EGL_NO_DISPLAY) eglTerminate(display); +#ifdef TARGET_PANDORA if (fbdev >= 0) close(fbdev); fbdev = -1;