aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-05 22:55:18 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-05 22:55:18 +0000
commit55cac11d8ef30a7045827f762d86d71994565dea (patch)
treee32db8e7f147a85f692d34483a61ac5f3022c084 /src/gpu
parentf3a7bc7954fc6af9b97c2ae7e7be340110792884 (diff)
Fix calls to setVertexSourceToBuffer
git-svn-id: http://skia.googlecode.com/svn/trunk@7604 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index b3f2b4199e..3f3768a078 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -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);