Initialize vulkan handles properly
This commit is contained in:
parent
40f218e6c8
commit
dd511638db
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user