Index: src/gpu/vk/GrVkTextureRenderTarget.cpp |
diff --git a/src/gpu/vk/GrVkTextureRenderTarget.cpp b/src/gpu/vk/GrVkTextureRenderTarget.cpp |
index bd028d2536f9c186635fe0ef15aa34a21165ffdb..7c085a3c292b9dce1ece01560d389be180ffa835 100644 |
--- a/src/gpu/vk/GrVkTextureRenderTarget.cpp |
+++ b/src/gpu/vk/GrVkTextureRenderTarget.cpp |
@@ -152,9 +152,12 @@ GrVkTextureRenderTarget::CreateWrappedTextureRenderTarget(GrVkGpu* gpu, |
const GrVkImage::Resource* imageResource; |
if (kBorrowed_LifeCycle == lifeCycle) { |
- imageResource = new GrVkImage::BorrowedResource(info->fImage, info->fAlloc, flags); |
+ imageResource = new GrVkImage::BorrowedResource(info->fImage, |
+ info->fAlloc, |
+ flags, |
+ info->fFormat); |
} else { |
- imageResource = new GrVkImage::Resource(info->fImage, info->fAlloc, flags); |
+ imageResource = new GrVkImage::Resource(info->fImage, info->fAlloc, flags, info->fFormat); |
} |
if (!imageResource) { |
return nullptr; |