Bug 736099 - Prevent a null pointer dereference in GLController.disposeGLContext. r=kats

This commit is contained in:
Ali Juma 2012-03-15 15:57:54 -04:00
Родитель 44d100d128
Коммит a39927d4c4
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -94,6 +94,10 @@ public class GLController {
}
public void disposeGLContext() {
if (mEGL == null) {
return;
}
if (!mEGL.eglMakeCurrent(mEGLDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE,
EGL10.EGL_NO_CONTEXT)) {
throw new GLControllerException("EGL context could not be released!");