summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-08-12 16:43:34 -0700
committerJesse Hall <jessehall@google.com>2013-08-12 16:43:34 -0700
commitea4fdd4beb83ab7019753a144d9afac6728dd3ee (patch)
tree605c1df33cfe41d36c76c98a7419a43698cfca31 /opengl
parent96a7dc08f2d504800b84b86eb9f480bd463b618d (diff)
downloadframeworks_native-ea4fdd4beb83ab7019753a144d9afac6728dd3ee.zip
frameworks_native-ea4fdd4beb83ab7019753a144d9afac6728dd3ee.tar.gz
frameworks_native-ea4fdd4beb83ab7019753a144d9afac6728dd3ee.tar.bz2
Don't swallow eglCreateContext errors
If the implementation eglCreateContext failed, we called eglGetError(), so we could check that it set the EGL error properly. But since we'd already called this, when the app called eglGetError() it would get EGL_SUCCESS! Bug: 10181333 Change-Id: Ic45d3a8fcb8c4421e04844c6d2f52761790b5948
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libs/EGL/eglApi.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp
index 8a0522e..e5e2dc0 100644
--- a/opengl/libs/EGL/eglApi.cpp
+++ b/opengl/libs/EGL/eglApi.cpp
@@ -552,12 +552,6 @@ EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config,
GLTrace_eglCreateContext(version, c);
#endif
return c;
- } else {
- EGLint error = eglGetError();
- ALOGE_IF(error == EGL_SUCCESS,
- "eglCreateContext(%p, %p, %p, %p) returned EGL_NO_CONTEXT "
- "but no EGL error!",
- dpy, config, share_list, attrib_list);
}
}
return EGL_NO_CONTEXT;