From dd511638db441220634d11a19e69d8a47fc0952c Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov <amdmi3@amdmi3.ru> Date: Tue, 20 Sep 2022 23:47:45 +0300 Subject: [PATCH] Initialize vulkan handles properly --- lib/graphics_engine/src/ge_vulkan_array_texture.cpp | 2 +- lib/graphics_engine/src/ge_vulkan_texture.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/graphics_engine/src/ge_vulkan_array_texture.cpp b/lib/graphics_engine/src/ge_vulkan_array_texture.cpp index d330ca6ac..094bcfcec 100644 --- a/lib/graphics_engine/src/ge_vulkan_array_texture.cpp +++ b/lib/graphics_engine/src/ge_vulkan_array_texture.cpp @@ -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; diff --git a/lib/graphics_engine/src/ge_vulkan_texture.cpp b/lib/graphics_engine/src/ge_vulkan_texture.cpp index 6ac923fcf..98ac63a15 100644 --- a/lib/graphics_engine/src/ge_vulkan_texture.cpp +++ b/lib/graphics_engine/src/ge_vulkan_texture.cpp @@ -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)