summaryrefslogtreecommitdiffstats
path: root/opengl/libs
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-07-09 17:33:15 -0700
committerMathias Agopian <mathias@google.com>2009-07-09 17:33:15 -0700
commitdacd7a33c458240355c4b22dcc82809241447ab8 (patch)
tree1113f0de99da4f81d888806fb5bd406ff21ba086 /opengl/libs
parent5fac82d6ec6c94974dc2784d84b965180d15e3c8 (diff)
downloadframeworks_native-dacd7a33c458240355c4b22dcc82809241447ab8.zip
frameworks_native-dacd7a33c458240355c4b22dcc82809241447ab8.tar.gz
frameworks_native-dacd7a33c458240355c4b22dcc82809241447ab8.tar.bz2
fix for [1969185] valgrind errors in new gl stuff
Diffstat (limited to 'opengl/libs')
-rw-r--r--opengl/libs/EGL/egl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index de323b3..c6e0f50 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -799,7 +799,7 @@ EGLBoolean eglChooseConfig( EGLDisplay dpy, const EGLint *attrib_list,
EGLint patch_index = -1;
GLint attr;
size_t size = 0;
- while ((attr=attrib_list[size])) {
+ while ((attr=attrib_list[size]) != EGL_NONE) {
if (attr == EGL_CONFIG_ID)
patch_index = size;
size += 2;