Skip to content

Commit c68accd

Browse files
author
Jean-Baptiste Queru
committed
Merge into jb-mr1-dev
Change-Id: Icd17d762c9d8e96ea6b78b18fa8f66471bc694ae
2 parents ca94050 + 4c7dc4a commit c68accd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/java/android/view/HardwareRenderer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,12 @@ void initializeEgl() {
864864

865865
if (mEglContext == null) {
866866
mEglContext = createContext(sEgl, sEglDisplay, sEglConfig);
867+
if (mEglContext == null) {
868+
//noinspection ConstantConditions
869+
throw new IllegalStateException("Could not create an EGL context. " +
870+
"eglCreateContext failed with error: " +
871+
GLUtils.getEGLErrorString(sEgl.eglGetError()));
872+
}
867873
sEglContextStorage.set(createManagedContext(mEglContext));
868874
}
869875
}

0 commit comments

Comments
 (0)