aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkRenderTarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/vk/GrVkRenderTarget.cpp')
-rw-r--r--src/gpu/vk/GrVkRenderTarget.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gpu/vk/GrVkRenderTarget.cpp b/src/gpu/vk/GrVkRenderTarget.cpp
index 5570c0d3b4..83c3b97776 100644
--- a/src/gpu/vk/GrVkRenderTarget.cpp
+++ b/src/gpu/vk/GrVkRenderTarget.cpp
@@ -360,12 +360,8 @@ GrBackendObject GrVkRenderTarget::getRenderTargetHandle() const {
}
GrBackendRenderTarget GrVkRenderTarget::getBackendRenderTarget() const {
- int numStencilBits = 0;
- if (GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment()) {
- numStencilBits = stencil->bits();
- }
return GrBackendRenderTarget(this->width(), this->height(), this->numColorSamples(),
- numStencilBits, fInfo);
+ fInfo, this->grVkImageLayout());
}
const GrVkResource* GrVkRenderTarget::stencilImageResource() const {