Handle NULL descriptors being created with 0 address

This commit is contained in:
baldurk
2025-08-25 17:51:09 +01:00
parent 795a925108
commit 046a86d5ab
@@ -3486,7 +3486,7 @@ void WrappedVulkan::vkGetDescriptorEXT(VkDevice device, const VkDescriptorGetInf
{
// uniform/storage are identical in the union. Since the type forms part of our this
// logic can be done in common
if(pDescriptorInfo->data.pUniformBuffer)
if(pDescriptorInfo->data.pUniformBuffer && pDescriptorInfo->data.pUniformBuffer->address)
{
VkFormat fmt = VK_FORMAT_UNDEFINED;
if(pDescriptorInfo->type == VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER ||