diff options
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/java/android/opengl/GLLogWrapper.java | 2 | ||||
-rw-r--r-- | opengl/libagl/egl.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/opengl/java/android/opengl/GLLogWrapper.java b/opengl/java/android/opengl/GLLogWrapper.java index 4119bf8..f332448 100644 --- a/opengl/java/android/opengl/GLLogWrapper.java +++ b/opengl/java/android/opengl/GLLogWrapper.java @@ -1517,7 +1517,7 @@ class GLLogWrapper extends GLWrapperBase { arg("count", count); startLogIndices(); for (int i = 0; i < count; i++) { - doElement(mStringBuilder, i, first + count); + doElement(mStringBuilder, i, first + i); } endLogIndices(); end(); 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 @@ 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) { |