commit | 4b31de8328bbf3ee789157ae1dc6fe7cc74c796a | [log] [tgz] |
---|---|---|
author | joshualitt <joshualitt@chromium.org> | Thu Mar 05 14:33:41 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Thu Mar 05 14:33:41 2015 -0800 |
tree | 0fd504b5a981a14bebc3918bbbd877dbd141b26b | |
parent | cc4d6673a942db11a678b572cf0dc5fca2b97f8a [diff] [blame] |
handle null vertex or index buffers in batch BUG=skia: Review URL: https://codereview.chromium.org/979343002
diff --git a/src/gpu/GrTessellatingPathRenderer.cpp b/src/gpu/GrTessellatingPathRenderer.cpp index 955e6c1..1170e1c 100644 --- a/src/gpu/GrTessellatingPathRenderer.cpp +++ b/src/gpu/GrTessellatingPathRenderer.cpp
@@ -1515,6 +1515,12 @@ count, &vertexBuffer, &firstVertex); + + if (!vertices) { + SkDebugf("Could not allocate vertices\n"); + return; + } + LOG("emitting %d verts\n", count); void* end = polys_to_triangles(polys, fillType, vertices); int actualCount = static_cast<int>(