Fix calls to setVertexSourceToBuffer
git-svn-id: http://skia.googlecode.com/svn/trunk@7604 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
f3a7bc7954
commit
55cac11d8e
@ -780,7 +780,7 @@ void GrContext::drawRect(const GrPaint& paint,
|
||||
GrPrintf("Failed to create static rect vb.\n");
|
||||
return;
|
||||
}
|
||||
target->setVertexSourceToBuffer(0, sqVB);
|
||||
target->setVertexSourceToBuffer(sqVB);
|
||||
GrDrawState* drawState = target->drawState();
|
||||
SkMatrix m;
|
||||
m.setAll(rect.width(), 0, rect.fLeft,
|
||||
@ -846,7 +846,7 @@ void GrContext::drawRectToRect(const GrPaint& paint,
|
||||
GrPrintf("Failed to create static rect vb.\n");
|
||||
return;
|
||||
}
|
||||
target->setVertexSourceToBuffer(0, sqVB);
|
||||
target->setVertexSourceToBuffer(sqVB);
|
||||
target->drawNonIndexed(kTriangleFan_GrPrimitiveType, 0, 4);
|
||||
#else
|
||||
GrDrawState::AutoStageDisable atr(fDrawState);
|
||||
|
Loading…
Reference in New Issue
Block a user