Loading core/java/android/view/HardwareRenderer.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -864,6 +864,12 @@ public abstract class HardwareRenderer { if (mEglContext == null) { if (mEglContext == null) { mEglContext = createContext(sEgl, sEglDisplay, sEglConfig); mEglContext = createContext(sEgl, sEglDisplay, sEglConfig); if (mEglContext == null) { //noinspection ConstantConditions throw new IllegalStateException("Could not create an EGL context. " + "eglCreateContext failed with error: " + GLUtils.getEGLErrorString(sEgl.eglGetError())); } sEglContextStorage.set(createManagedContext(mEglContext)); sEglContextStorage.set(createManagedContext(mEglContext)); } } } } Loading Loading
core/java/android/view/HardwareRenderer.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -864,6 +864,12 @@ public abstract class HardwareRenderer { if (mEglContext == null) { if (mEglContext == null) { mEglContext = createContext(sEgl, sEglDisplay, sEglConfig); mEglContext = createContext(sEgl, sEglDisplay, sEglConfig); if (mEglContext == null) { //noinspection ConstantConditions throw new IllegalStateException("Could not create an EGL context. " + "eglCreateContext failed with error: " + GLUtils.getEGLErrorString(sEgl.eglGetError())); } sEglContextStorage.set(createManagedContext(mEglContext)); sEglContextStorage.set(createManagedContext(mEglContext)); } } } } Loading