Initialize vulkan handles properly

This commit is contained in:
Dmitry Marakasov 2022-09-20 23:47:45 +03:00
parent 40f218e6c8
commit dd511638db
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ void GEVulkanArrayTexture::reloadInternal(const std::vector<io::path>& list,
std::vector<video::IImage*> images;
std::vector<GEMipmapGenerator*> mipmaps;
VkBuffer staging_buffer = NULL;
VkBuffer staging_buffer = VK_NULL_HANDLE;
VmaAllocation staging_buffer_allocation = NULL;
VmaAllocationCreateInfo staging_buffer_create_info = {};
staging_buffer_create_info.usage = VMA_MEMORY_USAGE_AUTO;

View File

@ -437,7 +437,7 @@ bool GEVulkanTexture::createImageView(VkImageAspectFlags aspect_flags)
}
auto image_view = std::make_shared<std::atomic<VkImageView> >();
VkImageView view_ptr = NULL;
VkImageView view_ptr = VK_NULL_HANDLE;
VkResult result = vkCreateImageView(m_vulkan_device, &view_info, NULL,
&view_ptr);
if (result == VK_SUCCESS)