egl: call eglTerminate when closing context
This commit is contained in:
parent
db9fbbaebf
commit
520e96a039
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue