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

Commit c68accd3 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru
Browse files

Merge into jb-mr1-dev

Change-Id: Icd17d762c9d8e96ea6b78b18fa8f66471bc694ae
parents ca940507 4c7dc4aa
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));
            }
        }