Changes for egl exit

This commit is contained in:
jojo61 2024-02-15 09:23:09 +01:00
parent f27e4fb35f
commit 8e495266e2

12
video.c
View File

@ -1258,17 +1258,19 @@ static void EglExit(void) {
EglCheck();
eglSurface = NULL;
}
if (eglContext) {
eglDestroyContext(eglDisplay, eglContext);
EglCheck();
eglContext = NULL;
}
if (eglSharedContext) {
eglDestroyContext(eglDisplay, eglSharedContext);
EglCheck();
eglSharedContext = NULL;
}
if (eglContext) {
eglDestroyContext(eglDisplay, eglContext);
EglCheck();
eglContext = NULL;
}
eglTerminate(eglDisplay);
eglDisplay = NULL;