From ab1cf3efd3b884a90170a82744f7ae508d51cf6e Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 9 Jul 2009 17:33:15 -0700 Subject: fix for [1969185] valgrind errors in new gl stuff --- opengl/libs/EGL/egl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opengl/libs') 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; -- cgit v1.1