Merge "Really Trigger the log when EGL_NO_CONTEXT is returned by eglCreateContext Bug #7216919" into jb-mr1-dev
This commit is contained in:
@@ -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