Index: src/gpu/vk/GrVkRenderTarget.cpp |
diff --git a/src/gpu/vk/GrVkRenderTarget.cpp b/src/gpu/vk/GrVkRenderTarget.cpp |
index 486f2f52b901cde71dc4834a08865f4dac99a043..4d844553fa5e848d1fbca9c21195fdc81dbe335e 100644 |
--- a/src/gpu/vk/GrVkRenderTarget.cpp |
+++ b/src/gpu/vk/GrVkRenderTarget.cpp |
@@ -216,9 +216,12 @@ GrVkRenderTarget::CreateWrappedRenderTarget(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; |