Sfoglia il codice sorgente

Backends: Vulkan: correct minimum pool size assertion (#8691)

Shawn Hatori 2 mesi fa
parent
commit
6b3cbb10a2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      backends/imgui_impl_vulkan.cpp

+ 1 - 1
backends/imgui_impl_vulkan.cpp

@@ -1043,7 +1043,7 @@ bool ImGui_ImplVulkan_CreateDeviceObjects()
 
     if (v->DescriptorPoolSize != 0)
     {
-        IM_ASSERT(v->DescriptorPoolSize > IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE);
+        IM_ASSERT(v->DescriptorPoolSize >= IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE);
         VkDescriptorPoolSize pool_size = { VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, v->DescriptorPoolSize };
         VkDescriptorPoolCreateInfo pool_info = {};
         pool_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;