summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoffer Gurell <chgur@tat.se>2009-10-12 11:57:27 +0200
committerChristoffer Gurell <chgur@tat.se>2009-10-12 11:57:27 +0200
commit4a783af6ecab54050d1675ccd041045a69d4fe8a (patch)
tree4c683818ca8dfeb3bbfb4508a587cbf7a0eac563
parent336a0ee90fd1dad9874af752c076523313aa0e6b (diff)
downloadbase-4a783af6ecab54050d1675ccd041045a69d4fe8a.tar.gz
Fix obvious typo bug in egl.cpp
can (and does sometimes) lead to accessing array with -1 as index
-rw-r--r--opengl/libagl/egl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp
index 44615679af6d..b1deb2f98e3a 100644
--- a/opengl/libagl/egl.cpp
+++ b/opengl/libagl/egl.cpp
@@ -692,7 +692,7 @@ static int isAttributeMatching(int i, EGLint attr, EGLint val)
gConfigManagement,
0, NELEM(gConfigManagement)-1,
attr);
- if (index >= 0) {
+ if (cfgMgtIndex >= 0) {
bool match = gConfigManagement[cfgMgtIndex].match(
val, configFound[index].value);
if (match) {