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.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gpu/vk/GrVkRenderTarget.cpp b/src/gpu/vk/GrVkRenderTarget.cpp
index 46099f2bd8..70b73a758a 100644
--- a/src/gpu/vk/GrVkRenderTarget.cpp
+++ b/src/gpu/vk/GrVkRenderTarget.cpp
@@ -214,10 +214,12 @@ GrVkRenderTarget::CreateWrappedRenderTarget(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;