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/libagl/egl.cpp | 2 +- opengl/libs/EGL/egl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp index c44478db83be..44615679af6d 100644 --- a/opengl/libagl/egl.cpp +++ b/opengl/libagl/egl.cpp @@ -1103,7 +1103,7 @@ EGLBoolean eglChooseConfig( EGLDisplay dpy, const EGLint *attrib_list, // default value if (binarySearch( (config_pair_t const*)attrib_list, - 0, numAttributes, + 0, numAttributes-1, config_defaults[j].key) < 0) { for (int i=0 ; i