Fix param order in setVertexSourceToBuffer calls due to r786 when GR_STATIC_RECT_VB is 1

Review URL: http://codereview.appspot.com/4179047/

git-svn-id: http://skia.googlecode.com/svn/trunk@788 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2011-02-14 18:27:55 +00:00
parent 09053444ad
commit 97b624529c

View File

@ -377,7 +377,7 @@ void GrContext::drawRect(const GrPaint& paint,
fGpu->drawNonIndexed(primType, 0, vertCount);
} else {
#if GR_STATIC_RECT_VB
fGpu->setVertexSourceToBuffer(fGpu->unitSquareVertexBuffer(), layout);
fGpu->setVertexSourceToBuffer(layout, fGpu->unitSquareVertexBuffer());
GrDrawTarget::AutoViewMatrixRestore avmr(fGpu);
GrMatrix m;
m.setAll(rect.width(), 0, rect.fLeft,
@ -445,7 +445,7 @@ void GrContext::drawRectToRect(const GrPaint& paint,
}
fGpu->concatTextureMatrix(0, m);
fGpu->setVertexSourceToBuffer(fGpu->unitSquareVertexBuffer(), layout);
fGpu->setVertexSourceToBuffer(layout, fGpu->unitSquareVertexBuffer());
#else
GrVertexLayout layout = GrDrawTarget::StageTexCoordVertexLayoutBit(0,0);