Ignore descriptor writes with descriptorCount == 0

This commit is contained in:
baldurk
2019-08-23 19:27:52 +01:00
parent c2fe16b44a
commit cf6a021db9
@@ -578,6 +578,10 @@ void WrappedVulkan::ReplayDescriptorSetWrite(VkDevice device, const VkWriteDescr
if(!valid)
return;
// ignore empty writes, for some reason this is valid with descriptor update templates.
if(writeDesc.descriptorCount == 0)
return;
const DescSetLayout &layout =
m_CreationInfo.m_DescSetLayout[m_DescriptorSetState[GetResID(writeDesc.dstSet)].layout];