From 97b624529c014b93cabffac5f0ef5a5842473a4b Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Mon, 14 Feb 2011 18:27:55 +0000 Subject: [PATCH] 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 --- gpu/src/GrContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu/src/GrContext.cpp b/gpu/src/GrContext.cpp index d14777e23e..c11d02fb5a 100644 --- a/gpu/src/GrContext.cpp +++ b/gpu/src/GrContext.cpp @@ -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);