Index: src/gpu/vk/GrVkGpu.cpp |
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp |
index de1e9052fa4870ee44e5b40fdc6c0da5c0b03c62..55f1eae99739220f56014aade32cada9fab47598 100644 |
--- a/src/gpu/vk/GrVkGpu.cpp |
+++ b/src/gpu/vk/GrVkGpu.cpp |
@@ -650,8 +650,7 @@ GrStencilAttachment* GrVkGpu::createStencilAttachmentForRenderTarget(const GrRen |
int samples = rt->numStencilSamples(); |
- SkASSERT(this->vkCaps().stencilFormats().count()); |
- const GrVkCaps::StencilFormat& sFmt = this->vkCaps().stencilFormats()[0]; |
+ const GrVkCaps::StencilFormat& sFmt = this->vkCaps().preferedStencilFormat(); |
GrVkStencilAttachment* stencil(GrVkStencilAttachment::Create(this, |
GrGpuResource::kCached_LifeCycle, |