diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/ops/GrLatticeOp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/ops/GrLatticeOp.cpp b/src/gpu/ops/GrLatticeOp.cpp index d705c64f94..fce1f972dd 100644 --- a/src/gpu/ops/GrLatticeOp.cpp +++ b/src/gpu/ops/GrLatticeOp.cpp @@ -96,6 +96,10 @@ private: numRects += fPatches[i].fIter->numRectsToDraw(); } + if (!numRects) { + return; + } + sk_sp<const GrBuffer> indexBuffer(target->resourceProvider()->refQuadIndexBuffer()); PatternHelper helper(GrPrimitiveType::kTriangles); void* vertices = helper.init(target, vertexStride, indexBuffer.get(), kVertsPerRect, |