Index: gm/convexpolyeffect.cpp |
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp |
index 00e89db2b170c0b4e05d6998c97e2eb762046552..275193f326435be3ae42c8c77df4944c32d19d49 100644 |
--- a/gm/convexpolyeffect.cpp |
+++ b/gm/convexpolyeffect.cpp |
@@ -127,7 +127,7 @@ protected: |
return; |
} |
GrDrawState* drawState = tt.target()->drawState(); |
- drawState->setVertexAttribs<kAttribs>(SK_ARRAY_COUNT(kAttribs)); |
+ drawState->setVertexAttribs<kAttribs>(SK_ARRAY_COUNT(kAttribs), sizeof(SkPoint)); |
SkMatrix m; |
SkPath p; |
@@ -193,7 +193,7 @@ protected: |
} |
GrDrawState* drawState = tt.target()->drawState(); |
- drawState->setVertexAttribs<kAttribs>(SK_ARRAY_COUNT(kAttribs)); |
+ drawState->setVertexAttribs<kAttribs>(SK_ARRAY_COUNT(kAttribs), sizeof(SkPoint)); |
drawState->addCoverageEffect(effect, 1); |
drawState->setIdentityViewMatrix(); |
drawState->setRenderTarget(rt); |