OSDN Git Service

Print more info if a draw call is out of bounds
authorLingfeng Yang <lfy@google.com>
Fri, 2 Dec 2016 20:32:41 +0000 (12:32 -0800)
committerLingfeng Yang <lfy@google.com>
Fri, 2 Dec 2016 20:32:41 +0000 (12:32 -0800)
Change-Id: I8f35d27a76d8b023f63543f2afdd4dc9c2a18a0b

system/GLESv2_enc/GL2Encoder.cpp

index f502df9..5eeaf7f 100755 (executable)
@@ -711,6 +711,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);
                 }
             }