Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index 37743371b23fa362de2cb0f89d3a230d28b740c9..4dc17b5a0492aefadbdcac9f5675023260308c22 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -1765,7 +1765,9 @@ |
attribState->set(this, |
attribIndex, |
vbuf->bufferID(), |
- attribType, |
+ GrGLAttribTypeToLayout(attribType).fCount, |
+ GrGLAttribTypeToLayout(attribType).fType, |
+ GrGLAttribTypeToLayout(attribType).fNormalized, |
stride, |
reinterpret_cast<GrGLvoid*>(vertexOffsetInBytes + offset)); |
offset += attrib.fOffset; |
@@ -2545,7 +2547,7 @@ |
GrGLAttribArrayState* attribs = |
this->fHWGeometryState.bindArrayAndBufferToDraw(this, arrayBuffer); |
- attribs->set(this, 0, arrayBuffer, kVec2f_GrVertexAttribType, 2 * sizeof(GrGLfloat), 0); |
+ attribs->set(this, 0, arrayBuffer, 2, GR_GL_FLOAT, false, 2 * sizeof(GrGLfloat), 0); |
attribs->disableUnusedArrays(this, 0x1); |
GL_CALL(Uniform4f(posXformUniform, bounds.width(), bounds.height(), bounds.left(), |
@@ -3487,8 +3489,7 @@ |
GrGLAttribArrayState* attribs = |
fHWGeometryState.bindArrayAndBufferToDraw(this, fWireRectArrayBuffer); |
- attribs->set(this, 0, fWireRectArrayBuffer, kVec2f_GrVertexAttribType, 2 * sizeof(GrGLfloat), |
- 0); |
+ attribs->set(this, 0, fWireRectArrayBuffer, 2, GR_GL_FLOAT, false, 2 * sizeof(GrGLfloat), 0); |
attribs->disableUnusedArrays(this, 0x1); |
GL_CALL(Uniform4fv(fWireRectProgram.fRectUniform, 1, edges)); |
@@ -3533,8 +3534,7 @@ |
GrGLAttribArrayState* attribs = |
fHWGeometryState.bindArrayAndBufferToDraw(this, fCopyProgramArrayBuffer); |
- attribs->set(this, 0, fCopyProgramArrayBuffer, kVec2f_GrVertexAttribType, 2 * sizeof(GrGLfloat), |
- 0); |
+ attribs->set(this, 0, fCopyProgramArrayBuffer, 2, GR_GL_FLOAT, false, 2 * sizeof(GrGLfloat), 0); |
attribs->disableUnusedArrays(this, 0x1); |
// dst rect edges in NDC (-1 to 1) |