Index: src/gpu/vk/GrVkRenderTarget.cpp |
diff --git a/src/gpu/vk/GrVkRenderTarget.cpp b/src/gpu/vk/GrVkRenderTarget.cpp |
index 46099f2bd8eb53276188214b78af03bc77cf2412..70b73a758a2f7589ddaeb896b4593bc8f2fabe9c 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; |