aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-06-06 12:25:28 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-06 21:24:43 +0000
commita88da48436f4c013722b27064e02a0b33574d2f8 (patch)
tree8dbcebc00f08a0378a4daac30e907ffe0a3e7de5 /src
parent7f5af0c2832e8a9682aff9521684c27e1368b6ee (diff)
Fix invalid assert in GrMesh::setIndexed
When drawing a single point it's valid for the first and last indices to be equal. Bug: skia:6728 Change-Id: Ice8cd89b306ed9564cdd9a77c557628662e18abb Reviewed-on: https://skia-review.googlesource.com/18904 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrMesh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrMesh.h b/src/gpu/GrMesh.h
index 53854764f2..bdb62f5f0f 100644
--- a/src/gpu/GrMesh.h
+++ b/src/gpu/GrMesh.h
@@ -140,7 +140,7 @@ inline void GrMesh::setIndexed(const GrBuffer* indexBuffer, int indexCount, int
SkASSERT(indexBuffer);
SkASSERT(indexCount >= 1);
SkASSERT(baseIndex >= 0);
- SkASSERT(maxIndexValue > minIndexValue);
+ SkASSERT(maxIndexValue >= minIndexValue);
fIndexBuffer.reset(indexBuffer);
fInstanceBuffer.reset(nullptr);
fIndexData.fIndexCount = indexCount;