commit | 1d417a8738304c115f3547ecc34dda7a7d75b97a | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Wed Mar 23 11:50:26 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Mar 23 11:50:26 2016 -0700 |
tree | dcd9b55ade66a51972f352244da1e2aa5bf521c3 | |
parent | f799706656f2581c5bf5510d94df3fa17cce1607 [diff] [blame] |
Add unit test for vertex attribute count. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1826863002 Review URL: https://codereview.chromium.org/1826863002
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index ce15b41..177fbab 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp
@@ -497,6 +497,7 @@ const GrMesh* meshes, int meshCount) { if (primProc.numAttribs() > this->caps()->maxVertexAttributes()) { + fStats.incNumFailedDraws(); return false; } this->handleDirtyContext();