Index: src/gpu/vk/GrVkTextureRenderTarget.cpp |
diff --git a/src/gpu/vk/GrVkTextureRenderTarget.cpp b/src/gpu/vk/GrVkTextureRenderTarget.cpp |
index e44e85a647af480c58e89dfbb1cee7ef2acc4063..2a89817713dfb4cfe6cbe8569055e46444f4277d 100644 |
--- a/src/gpu/vk/GrVkTextureRenderTarget.cpp |
+++ b/src/gpu/vk/GrVkTextureRenderTarget.cpp |
@@ -159,10 +159,12 @@ GrVkTextureRenderTarget::CreateWrappedTextureRenderTarget(GrVkGpu* gpu, |
if (kBorrow_GrWrapOwnership == ownership) { |
imageResource = new GrVkImage::BorrowedResource(info->fImage, |
info->fAlloc, |
- flags, |
- info->fFormat); |
+ info->fFormat, |
+ info->fLevelCount, |
+ flags); |
} else { |
- imageResource = new GrVkImage::Resource(info->fImage, info->fAlloc, flags, info->fFormat); |
+ imageResource = new GrVkImage::Resource(info->fImage, info->fAlloc, info->fFormat, |
+ info->fLevelCount, flags); |
} |
if (!imageResource) { |
return nullptr; |