Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4368c449 authored by David Li's avatar David Li Committed by Android (Google) Code Review
Browse files

Merge "Fix mTexCoordsSlot > 0 check to mTexCoordsSlot >= 0"

parents 4b7c6fa2 cf28957c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }
}