Merge into jb-mr1-dev
Change-Id: Icd17d762c9d8e96ea6b78b18fa8f66471bc694ae
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user