Buildfix, warning fixes

This commit is contained in:
Henrik Rydgård committed 2018-03-01 13:50:56 +01:00
1 parent ee752f5399
commit 1e940f4973
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ bool VulkanTexture::CreateDirect(VkCommandBuffer cmd, int w, int h, int numMips,
_assert_msg_(G3D, res != VK_ERROR_TOO_MANY_OBJECTS, "Too many Vulkan memory objects!");
_assert_(res == VK_ERROR_OUT_OF_HOST_MEMORY || res == VK_ERROR_OUT_OF_DEVICE_MEMORY || res == VK_ERROR_TOO_MANY_OBJECTS);
vkDestroyImage(vulkan_->GetDevice(), image_, nullptr);
image_ = nullptr;
image_ = VK_NULL_HANDLE;
return false;
}