mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2025-03-01 10:39:28 +00:00
Changes for egl exit
This commit is contained in:
parent
f27e4fb35f
commit
8e495266e2
12
video.c
12
video.c
@ -1258,17 +1258,19 @@ static void EglExit(void) {
|
|||||||
EglCheck();
|
EglCheck();
|
||||||
eglSurface = NULL;
|
eglSurface = NULL;
|
||||||
}
|
}
|
||||||
if (eglSharedContext) {
|
|
||||||
eglDestroyContext(eglDisplay, eglSharedContext);
|
|
||||||
EglCheck();
|
|
||||||
eglSharedContext = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (eglContext) {
|
if (eglContext) {
|
||||||
eglDestroyContext(eglDisplay, eglContext);
|
eglDestroyContext(eglDisplay, eglContext);
|
||||||
EglCheck();
|
EglCheck();
|
||||||
eglContext = NULL;
|
eglContext = NULL;
|
||||||
}
|
}
|
||||||
|
if (eglSharedContext) {
|
||||||
|
eglDestroyContext(eglDisplay, eglSharedContext);
|
||||||
|
EglCheck();
|
||||||
|
eglSharedContext = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
eglTerminate(eglDisplay);
|
eglTerminate(eglDisplay);
|
||||||
eglDisplay = NULL;
|
eglDisplay = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user