summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/egl.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-09-23 21:41:30 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-23 21:41:30 -0700
commit2184624db15088bcd230d1e8da1ad7d9bca91c90 (patch)
treed88a3a008dd2122eef440431c760003e5aaf7db0 /opengl/libs/EGL/egl.cpp
parent04e79051dce4f7ea3b3c6ced2c03676083449267 (diff)
parent4eb1ad5e98c7b36f7ac4ec8c3270f9763afd107e (diff)
downloadframeworks_base-2184624db15088bcd230d1e8da1ad7d9bca91c90.zip
frameworks_base-2184624db15088bcd230d1e8da1ad7d9bca91c90.tar.gz
frameworks_base-2184624db15088bcd230d1e8da1ad7d9bca91c90.tar.bz2
am 4eb1ad5e: am 524a6d8e: Merge "better fix for [3028370] GL get error should return a valid error if no context is bound." into gingerbread
Merge commit '4eb1ad5e98c7b36f7ac4ec8c3270f9763afd107e' * commit '4eb1ad5e98c7b36f7ac4ec8c3270f9763afd107e': better fix for [3028370] GL get error should return a valid error if no context is bound.
Diffstat (limited to 'opengl/libs/EGL/egl.cpp')
-rw-r--r--opengl/libs/EGL/egl.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index d99fc1e..bc944a0 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -444,19 +444,14 @@ static void(*findProcAddress(const char* name,
// ----------------------------------------------------------------------------
-static void gl_no_context() {
+static int gl_no_context() {
tls_t* tls = getTLS();
if (tls->logCallWithNoContext == EGL_TRUE) {
tls->logCallWithNoContext = EGL_FALSE;
LOGE("call to OpenGL ES API with no current context "
"(logged once per thread)");
}
-}
-
-// Always return GL_INVALID_OPERATION from glGetError() when called from
-// a thread without a bound context.
-static GLenum gl_no_context_glGetError() {
- return GL_INVALID_OPERATION;
+ return 0;
}
static void early_egl_init(void)
@@ -470,8 +465,6 @@ static void early_egl_init(void)
addr,
sizeof(gHooksNoContext));
- gHooksNoContext.gl.glGetError = gl_no_context_glGetError;
-
setGlThreadSpecific(&gHooksNoContext);
}