Skip to content

Commit ed1b6f4

Browse files
Romain GuyJean-Baptiste Queru
authored andcommitted
Really Trigger the log when EGL_NO_CONTEXT is returned by eglCreateContext
Bug #7216919 Change-Id: Ie4a855ee51a0a4fad69bae8f377189d0c653f543
1 parent a7546e3 commit ed1b6f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/view/HardwareRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig)
994994

995995
EGLContext context = egl.eglCreateContext(eglDisplay, eglConfig, EGL_NO_CONTEXT,
996996
mGlVersion != 0 ? attribs : null);
997-
if (context == null) {
997+
if (context == null || context == EGL_NO_CONTEXT) {
998998
//noinspection ConstantConditions
999999
throw new IllegalStateException(
10001000
"Could not create an EGL context. eglCreateContext failed with error: " +

0 commit comments

Comments
 (0)