summaryrefslogtreecommitdiffstats
path: root/opengl/libagl
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
commit97640b9320eac5f5709f48550ff37e9f41297065 (patch)
tree71d940bdc9c024cf448910d7f1ec68802ff42e6b /opengl/libagl
parent17a8f6901e3f1a40a142954f67b4823faeb0c23e (diff)
downloadframeworks_native-97640b9320eac5f5709f48550ff37e9f41297065.zip
frameworks_native-97640b9320eac5f5709f48550ff37e9f41297065.tar.gz
frameworks_native-97640b9320eac5f5709f48550ff37e9f41297065.tar.bz2
Fix obvious typo bug in egl.cpp
can (and does sometimes) lead to accessing array with -1 as index
Diffstat (limited to 'opengl/libagl')
-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 4461567..b1deb2f 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) {