From 520e96a03980fc9e472fd874416cd66645315068 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sun, 22 Jan 2023 17:22:47 +0100 Subject: [PATCH] egl: call eglTerminate when closing context --- core/wsi/egl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;