1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

check for allocated descriptor set

This commit is contained in:
Michael Böhme 2025-06-11 17:06:31 +02:00
parent b2f39318cb
commit 28e22d8028

View file

@ -1267,6 +1267,7 @@ VkDescriptorSet ImGui_ImplVulkan_AddTexture(VkSampler sampler, VkImageView image
}
// Update the Descriptor Set:
if (descriptor_set != VK_NULL_HANDLE)
{
VkDescriptorImageInfo desc_image[1] = {};
desc_image[0].sampler = sampler;