Skip to content

Commit

Permalink
Initialize vulkan handles properly
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Sep 20, 2022
1 parent 40f218e commit dd51163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/graphics_engine/src/ge_vulkan_array_texture.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/graphics_engine/src/ge_vulkan_texture.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit dd51163

Please sign in to comment.