diff options
author | Jack Palevich <jackpal@google.com> | 2009-12-04 17:15:07 +0800 |
---|---|---|
committer | Jack Palevich <jackpal@google.com> | 2009-12-04 17:15:07 +0800 |
commit | 9bb4dbae91df0971038e955ef49c5d9a64d4a428 (patch) | |
tree | fd26f392ac4891ae5ce880c161cd0b9e084ed927 /opengl/java/android | |
parent | d682ab72c5b7781109b0f30ac16202441fb925d6 (diff) | |
download | frameworks_base-9bb4dbae91df0971038e955ef49c5d9a64d4a428.zip frameworks_base-9bb4dbae91df0971038e955ef49c5d9a64d4a428.tar.gz frameworks_base-9bb4dbae91df0971038e955ef49c5d9a64d4a428.tar.bz2 |
Improve error message thrown when eglCreateContext fails.
Diffstat (limited to 'opengl/java/android')
-rw-r--r-- | opengl/java/android/opengl/GLSurfaceView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/java/android/opengl/GLSurfaceView.java b/opengl/java/android/opengl/GLSurfaceView.java index 8954ec6..1e3bd72 100644 --- a/opengl/java/android/opengl/GLSurfaceView.java +++ b/opengl/java/android/opengl/GLSurfaceView.java @@ -847,7 +847,7 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback */ mEglContext = mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { - throw new RuntimeException("createContext failed"); + throwEglException("createContext"); } mEglSurface = null; |