зеркало из https://github.com/mozilla/gecko-dev.git
Bug 736099 - Prevent a null pointer dereference in GLController.disposeGLContext. r=kats
This commit is contained in:
Родитель
44d100d128
Коммит
a39927d4c4
|
@ -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!");
|
||||
|
|
Загрузка…
Ссылка в новой задаче