Index: src/gpu/vk/GrVkGpuCommandBuffer.cpp |
diff --git a/src/gpu/vk/GrVkGpuCommandBuffer.cpp b/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
index 6144cf9f8e9e6d5735a2699321e3facfb489f631..e3c7cb77cc2692fd50464d93b14a358b4253330f 100644 |
--- a/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
+++ b/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
@@ -162,6 +162,7 @@ void GrVkGpuCommandBuffer::onClearStencilClip(GrRenderTarget* target, |
const GrFixedClip& clip, |
bool insideStencilMask) { |
SkASSERT(target); |
+ SkASSERT(!clip.hasWindowRectangles()); |
GrVkRenderTarget* vkRT = static_cast<GrVkRenderTarget*>(target); |
GrStencilAttachment* sb = target->renderTargetPriv().getStencilAttachment(); |
@@ -215,6 +216,7 @@ void GrVkGpuCommandBuffer::onClearStencilClip(GrRenderTarget* target, |
void GrVkGpuCommandBuffer::onClear(GrRenderTarget* target, const GrFixedClip& clip, GrColor color) { |
// parent class should never let us get here with no RT |
SkASSERT(target); |
+ SkASSERT(!clip.hasWindowRectangles()); |
VkClearColorValue vkColor; |
GrColorToRGBAFloat(color, vkColor.float32); |