Index: src/gpu/vk/GrVkTexture.cpp |
diff --git a/src/gpu/vk/GrVkTexture.cpp b/src/gpu/vk/GrVkTexture.cpp |
index b297b60c11600cd011280778040c76b1c30d8b94..8dcc3684747ef35151fab6bc88f973c47661f9ca 100644 |
--- a/src/gpu/vk/GrVkTexture.cpp |
+++ b/src/gpu/vk/GrVkTexture.cpp |
@@ -87,9 +87,12 @@ GrVkTexture* GrVkTexture::CreateWrappedTexture(GrVkGpu* gpu, const GrSurfaceDesc |
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; |