We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca94050 + 4c7dc4a commit c68accdCopy full SHA for c68accd
core/java/android/view/HardwareRenderer.java
@@ -864,6 +864,12 @@ void initializeEgl() {
864
865
if (mEglContext == null) {
866
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
+ }
873
sEglContextStorage.set(createManagedContext(mEglContext));
874
}
875
0 commit comments