aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-04 17:49:48 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-04 17:49:48 +0000
commit65ee5f424cb4dabd453268902c00086605d77c1d (patch)
tree4df198f1a75fddaf2a0396fa4f0272db8525fe6b /tests
parentd52a99703bd8dcc2567fbe5f8c18d408c15ab7d7 (diff)
Use GrConvexPolyEffect when clip is a single convex polygon
BUG=skia:2051 Committed: http://code.google.com/p/skia/source/detail?r=13286 R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/151523005 git-svn-id: http://skia.googlecode.com/svn/trunk@13306 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/GLProgramsTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 6c4aace96f..f3207352df 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -173,6 +173,7 @@ bool GrGpuGL::programUnitTest(int maxStages) {
this->getContext(),
*this->caps(),
dummyTextures));
+ SkASSERT(effect);
int numAttribs = (*effect)->numVertexAttribs();
// If adding this effect would exceed the max attrib count then generate a