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);
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue