diff options
author | David Li <davidxli@google.com> | 2011-02-25 12:05:44 -0800 |
---|---|---|
committer | David Li <davidxli@google.com> | 2011-02-25 12:05:44 -0800 |
commit | cf28957c89127ccfc82d535903c776124665446a (patch) | |
tree | c18c613f9798762648cb36a5b3eb7bb9a76ccdd2 /libs | |
parent | 10d63fada8a0e67095422d60b381906ebe5b65ee (diff) | |
download | frameworks_base-cf28957c89127ccfc82d535903c776124665446a.zip frameworks_base-cf28957c89127ccfc82d535903c776124665446a.tar.gz frameworks_base-cf28957c89127ccfc82d535903c776124665446a.tar.bz2 |
Fix mTexCoordsSlot > 0 check to mTexCoordsSlot >= 0
0 Is a valid attribute location.
Change-Id: Ib24335f48efd6cc59e2ab877569d7d0c95f8490a
Signed-off-by: David Li <davidxli@google.com>
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 4a08f53..1904252 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -1031,7 +1031,7 @@ void OpenGLRenderer::setupDrawMesh(GLvoid* vertices, GLvoid* texCoords, GLuint v } glVertexAttribPointer(mCaches.currentProgram->position, 2, GL_FLOAT, GL_FALSE, gMeshStride, vertices); - if (mTexCoordsSlot > 0) { + if (mTexCoordsSlot >= 0) { glVertexAttribPointer(mTexCoordsSlot, 2, GL_FLOAT, GL_FALSE, gMeshStride, texCoords); } } |