Index: src/gpu/gl/GrGpuGL_program.cpp |
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp |
index 0a7bb0e39ab5fc70f46ed153fc918e7fd1b0bda3..f18fec4758c0aa815700ceda7729f93a5e707417 100644 |
--- a/src/gpu/gl/GrGpuGL_program.cpp |
+++ b/src/gpu/gl/GrGpuGL_program.cpp |
@@ -343,9 +343,9 @@ void GrGpuGL::setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes) { |
GrGLAttribArrayState* attribState = |
fHWGeometryState.bindArrayAndBuffersToDraw(this, vbuf, ibuf); |
+ uint32_t usedAttribArraysMask = 0; |
if (fCurrentProgram->hasVertexShader()) { |
int vertexAttribCount = this->getDrawState().getVertexAttribCount(); |
- uint32_t usedAttribArraysMask = 0; |
const GrVertexAttrib* vertexAttrib = this->getDrawState().getVertexAttribs(); |
for (int vertexAttribIndex = 0; vertexAttribIndex < vertexAttribCount; |
@@ -363,6 +363,6 @@ void GrGpuGL::setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes) { |
reinterpret_cast<GrGLvoid*>( |
vertexOffsetInBytes + vertexAttrib->fOffset)); |
} |
- attribState->disableUnusedArrays(this, usedAttribArraysMask); |
} |
+ attribState->disableUnusedArrays(this, usedAttribArraysMask); |
} |