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>
This commit is contained in:
Chris Dalton 2017-06-06 12:25:28 -06:00 committed by Skia Commit-Bot
parent 7f5af0c283
commit a88da48436

View File

@ -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;