Really Trigger the log when EGL_NO_CONTEXT is returned by eglCreateContext
Bug #7216919 Change-Id: Ie4a855ee51a0a4fad69bae8f377189d0c653f543
This commit is contained in:
committed by
Jean-Baptiste Queru
parent
a7546e3623
commit
ed1b6f4fc0
@@ -994,7 +994,7 @@ public abstract class HardwareRenderer {
|
||||
|
||||
EGLContext context = egl.eglCreateContext(eglDisplay, eglConfig, EGL_NO_CONTEXT,
|
||||
mGlVersion != 0 ? attribs : null);
|
||||
if (context == null) {
|
||||
if (context == null || context == EGL_NO_CONTEXT) {
|
||||
//noinspection ConstantConditions
|
||||
throw new IllegalStateException(
|
||||
"Could not create an EGL context. eglCreateContext failed with error: " +
|
||||
|
||||
Reference in New Issue
Block a user