diff options
author | David Li <davidxli@google.com> | 2011-02-25 12:59:14 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-02-25 12:59:14 -0800 |
commit | 4368c449d7baa398e67eb4d96467f1de8862c5bb (patch) | |
tree | b07523d05935050b5e0f2be84eb9c2ab4096fda4 /libs | |
parent | 4b7c6fa2c0707b7e5b451b31de8a113e945c8e09 (diff) | |
parent | cf28957c89127ccfc82d535903c776124665446a (diff) | |
download | frameworks_base-4368c449d7baa398e67eb4d96467f1de8862c5bb.zip frameworks_base-4368c449d7baa398e67eb4d96467f1de8862c5bb.tar.gz frameworks_base-4368c449d7baa398e67eb4d96467f1de8862c5bb.tar.bz2 |
Merge "Fix mTexCoordsSlot > 0 check to mTexCoordsSlot >= 0"
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 cc88236..48b3d6e 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); } } |