diff options
Diffstat (limited to 'src/gpu/GrTextContext.cpp')
-rw-r--r-- | src/gpu/GrTextContext.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp index ab2bc424d6..58b3e92c61 100644 --- a/src/gpu/GrTextContext.cpp +++ b/src/gpu/GrTextContext.cpp @@ -194,10 +194,9 @@ HAS_ATLAS: if (NULL == fVertices) { // position + texture coord static const GrVertexAttrib kVertexAttribs[] = { - {kVec2f_GrVertexAttribType, 0}, - {kVec2f_GrVertexAttribType, sizeof(GrPoint)} + {kVec2f_GrVertexAttribType, 0, kPosition_GrVertexAttribBinding}, + {kVec2f_GrVertexAttribType, sizeof(GrPoint), kEffect_GrVertexAttribBinding} }; - static const GrAttribBindings kAttribBindings = 0; // If we need to reserve vertices allow the draw target to suggest // a number of verts to reserve and whether to perform a flush. @@ -215,8 +214,6 @@ HAS_ATLAS: fDrawTarget = fContext->getTextTarget(fPaint); fDrawTarget->drawState()->setVertexAttribs(kVertexAttribs, SK_ARRAY_COUNT(kVertexAttribs)); } - fDrawTarget->drawState()->setAttribIndex(GrDrawState::kPosition_AttribIndex, 0); - fDrawTarget->drawState()->setAttribBindings(kAttribBindings); fMaxVertices = kDefaultRequestedVerts; // ignore return, no point in flushing again. fDrawTarget->geometryHints(&fMaxVertices, NULL); |