OSDN Git Service

Merge "Handle repeated swapBuffer errors"
authorTreeHugger Robot <treehugger-gerrit@google.com>
Fri, 9 Dec 2016 00:36:02 +0000 (00:36 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 9 Dec 2016 00:36:02 +0000 (00:36 +0000)
system/GLESv2_enc/GL2Encoder.cpp

index 065f81f..61a80f2 100755 (executable)
@@ -701,6 +701,9 @@ void GL2Encoder::sendVertexAttributes(GLint first, GLsizei count, bool hasClient
                     }
                 } else {
                     ALOGE("a vertex attribute index out of boundary is detected. Skipping corresponding vertex attribute.");
+                    ALOGE("Out of bounds vertex attribute info: "
+                          "attribute %d allocedBufferSize %u bufferDataSpecified? %d wantedStart %u wantedEnd %u",
+                          i, buf->m_size, buf != NULL, firstIndex, firstIndex + bufLen);
                     m_glDisableVertexAttribArray_enc(this, i);
                 }
             }