Merge "Really Trigger the log when EGL_NO_CONTEXT is returned by eglCreateContext Bug #7216919" into jb-mr1-dev

This commit is contained in:
Romain Guy
2012-09-24 21:45:13 -07:00
committed by Android (Google) Code Review

View File

@@ -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: " +