diff options
-rw-r--r-- | src/gpu/vk/GrVkCommandBuffer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/vk/GrVkCommandBuffer.cpp b/src/gpu/vk/GrVkCommandBuffer.cpp index 0796722f3e..ba19168b37 100644 --- a/src/gpu/vk/GrVkCommandBuffer.cpp +++ b/src/gpu/vk/GrVkCommandBuffer.cpp @@ -333,8 +333,7 @@ void GrVkCommandBuffer::setDiscardRectangles(const GrVkGpu* gpu, uint32_t discardRectangleCount, const VkRect2D* discardRectangles) { SkASSERT(fIsActive); - SkASSERT(firstDiscardRectangle + discardRectangleCount <= - (uint32_t)gpu->vkCaps().maxWindowRectangles()); + SkASSERT(firstDiscardRectangle + discardRectangleCount <= gpu->vkCaps().maxWindowRectangles()); SkASSERT(gpu->vkCaps().maxWindowRectangles() <= GrWindowRectangles::kMaxWindows); if (memcmp(discardRectangles, &fCachedDiscardRectangles[firstDiscardRectangle], discardRectangleCount * sizeof(VkRect2D))) { |