Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad1712ff authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am c68accd3: Merge into jb-mr1-dev

* commit 'c68accd3':
  Add extra error check when eglCreateContext fails Bug #7216919
parents 9d9859da c68accd3
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -864,6 +864,12 @@ public abstract class HardwareRenderer {

            if (mEglContext == null) {
                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));
            }
        }