Index: src/gpu/vk/GrVkGpu.cpp |
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp |
index 8e204446a2633d3ebede04dd1806dc6321f58bcd..85bfce87679c696ba720e6ff84f6747a5207b6d2 100644 |
--- a/src/gpu/vk/GrVkGpu.cpp |
+++ b/src/gpu/vk/GrVkGpu.cpp |
@@ -366,9 +366,7 @@ bool GrVkGpu::onWritePixels(GrSurface* surface, |
} |
void GrVkGpu::onResolveRenderTarget(GrRenderTarget* target) { |
- if (target->needsResolve()) { |
- SkASSERT(target->numColorSamples() > 1); |
- |
+ if (target->needsResolve() && target->numColorSamples() > 1) { |
GrVkRenderTarget* rt = static_cast<GrVkRenderTarget*>(target); |
SkASSERT(rt->msaaImage()); |