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:
parent
7f5af0c283
commit
a88da48436
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user