summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/egl.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-01-25 11:30:11 -0800
committerMathias Agopian <mathias@google.com>2010-01-25 11:30:11 -0800
commit7552dcf9360ab5b89e7ac5efe55c6ba277ab17f2 (patch)
tree4fa15ebcdd57f50aaf32a736c3ebda4238786bea /opengl/libs/EGL/egl.cpp
parentf226e9f27baa5a29aacffab87e0c0fc52d59fe13 (diff)
downloadframeworks_base-7552dcf9360ab5b89e7ac5efe55c6ba277ab17f2.zip
frameworks_base-7552dcf9360ab5b89e7ac5efe55c6ba277ab17f2.tar.gz
frameworks_base-7552dcf9360ab5b89e7ac5efe55c6ba277ab17f2.tar.bz2
fix [2303866] eglMakeCurrent doesn't return all error messages described in the spec
Diffstat (limited to 'opengl/libs/EGL/egl.cpp')
-rw-r--r--opengl/libs/EGL/egl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index c22c21b..d2f8ced 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -1111,10 +1111,10 @@ EGLBoolean eglMakeCurrent( EGLDisplay dpy, EGLSurface draw,
if (cur_c == NULL) {
// no current context
if (draw != EGL_NO_SURFACE || read != EGL_NO_SURFACE) {
- // calling eglMakeCurrent( ..., EGL_NO_CONTEXT, !=0, !=0);
- return setError(EGL_BAD_PARAMETER, EGL_FALSE);
+ // calling eglMakeCurrent( ..., !=0, !=0, EGL_NO_CONTEXT);
+ return setError(EGL_BAD_MATCH, EGL_FALSE);
}
- // not an error, there is just not current context.
+ // not an error, there is just no current context.
return EGL_TRUE;
}
}