egl: call eglTerminate when closing context

This commit is contained in:
Flyinghead 2023-01-22 17:22:47 +01:00
parent db9fbbaebf
commit 520e96a039
1 changed files with 1 additions and 1 deletions

View File

@ -190,9 +190,9 @@ void EGLGraphicsContext::term()
eglDestroyContext(display, context); eglDestroyContext(display, context);
if (surface != EGL_NO_SURFACE) if (surface != EGL_NO_SURFACE)
eglDestroySurface(display, surface); eglDestroySurface(display, surface);
#ifdef TARGET_PANDORA
if (display != EGL_NO_DISPLAY) if (display != EGL_NO_DISPLAY)
eglTerminate(display); eglTerminate(display);
#ifdef TARGET_PANDORA
if (fbdev >= 0) if (fbdev >= 0)
close(fbdev); close(fbdev);
fbdev = -1; fbdev = -1;