Merge into jb-mr1-dev

Change-Id: Icd17d762c9d8e96ea6b78b18fa8f66471bc694ae
This commit is contained in:
Jean-Baptiste Queru
2012-09-25 09:28:24 -07:00

View File

@@ -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));
}
}