| Index: src/gpu/GrAAHairLinePathRenderer.cpp
|
| ===================================================================
|
| --- src/gpu/GrAAHairLinePathRenderer.cpp (revision 8462)
|
| +++ src/gpu/GrAAHairLinePathRenderer.cpp (working copy)
|
| @@ -507,8 +507,8 @@
|
|
|
| // position + edge
|
| static const GrVertexAttrib kAttribs[] = {
|
| - {kVec2f_GrVertexAttribType, 0},
|
| - {kVec4f_GrVertexAttribType, sizeof(GrPoint)}
|
| + {kVec2f_GrVertexAttribType, 0, kPosition_GrVertexAttribBinding},
|
| + {kVec4f_GrVertexAttribType, sizeof(GrPoint), kEffect_GrVertexAttribBinding}
|
| };
|
| SkMatrix viewM = drawState->getViewMatrix();
|
|
|
| @@ -522,8 +522,6 @@
|
| int vertCnt = kVertsPerLineSeg * *lineCnt + kVertsPerQuad * *quadCnt;
|
|
|
| target->drawState()->setVertexAttribs(kAttribs, SK_ARRAY_COUNT(kAttribs));
|
| - target->drawState()->setAttribIndex(GrDrawState::kPosition_AttribIndex, 0);
|
| - target->drawState()->setAttribBindings(GrDrawState::kDefault_AttribBindings);
|
| GrAssert(sizeof(Vertex) == target->getDrawState().getVertexSize());
|
|
|
| if (!arg->set(target, vertCnt, 0)) {
|
|
|