aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTessellatingPathRenderer.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-03-05 14:33:41 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-05 14:33:41 -0800
commit4b31de8328bbf3ee789157ae1dc6fe7cc74c796a (patch)
tree0fd504b5a981a14bebc3918bbbd877dbd141b26b /src/gpu/GrTessellatingPathRenderer.cpp
parentcc4d6673a942db11a678b572cf0dc5fca2b97f8a (diff)
handle null vertex or index buffers in batch
Diffstat (limited to 'src/gpu/GrTessellatingPathRenderer.cpp')
-rw-r--r--src/gpu/GrTessellatingPathRenderer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrTessellatingPathRenderer.cpp b/src/gpu/GrTessellatingPathRenderer.cpp
index 955e6c12e2..1170e1cc99 100644
--- a/src/gpu/GrTessellatingPathRenderer.cpp
+++ b/src/gpu/GrTessellatingPathRenderer.cpp
@@ -1515,6 +1515,12 @@ public:
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>(