Resolve VkDeviceMemory/nullptr type mismatch to fix build on FreeBSD i386

This commit is contained in:
Ganael Laplanche
2020-10-07 21:25:29 +02:00
parent 0029ca84b0
commit d456e2e391
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ std::unique_ptr<VKTexture> VKTexture::CreateAdopted(const TextureConfig& tex_con
VkImageViewType view_type, VkImageLayout layout)
{
std::unique_ptr<VKTexture> texture = std::make_unique<VKTexture>(
tex_config, nullptr, image, layout, ComputeImageLayout::Undefined);
tex_config, VkDeviceMemory(VK_NULL_HANDLE), image, layout, ComputeImageLayout::Undefined);
if (!texture->CreateView(view_type))
return nullptr;