summaryrefslogtreecommitdiff
path: root/opengl/libs
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-07-09 17:33:54 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2009-07-09 17:33:54 -0700
commit46e28db8818332e3cda4cc410cc89a1ed7ce4db6 (patch)
treeff8250daac9cd492dedc51b2a89c5407e95eb5e9 /opengl/libs
parent5c2e622c9aa4f7e08374cfc54d11dab5a7474153 (diff)
parentab1cf3efd3b884a90170a82744f7ae508d51cf6e (diff)
Merge change 6713 into donut
* changes: 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 de323b392a9e..c6e0f505c26f 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;