am 99f2a4bb: Merge "Add Event log for RAT switch." into eclair

Merge commit '99f2a4bb519e390eacc9807443c74ca05f176242' into eclair-plus-aosp

* commit '99f2a4bb519e390eacc9807443c74ca05f176242':
  Add Event log for RAT switch.
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp
index 781b8c3..81864bd 100644
--- a/opengl/libagl/egl.cpp
+++ b/opengl/libagl/egl.cpp
@@ -1205,7 +1205,7 @@
                 gConfigManagement,
                 0, NELEM(gConfigManagement)-1,
                 attr);
-        if (index >= 0) {
+        if (cfgMgtIndex >= 0) {
             bool match = gConfigManagement[cfgMgtIndex].match(
                     val, configFound[index].value);
             if (match) {