Fix postvs descriptor validation checking for arrays with empty elements

This commit is contained in:
baldurk
2019-03-27 17:57:10 +00:00
parent f7268a12cf
commit 34ceecdfc3
+1 -1
View File
@@ -1600,7 +1600,7 @@ void VulkanReplay::FetchVSOut(uint32_t eventId)
for(uint32_t w = 0; w < bind.descriptorCount; w++)
{
// if this write is valid, we increment the descriptor count and continue
if(IsValid(write, w))
if(IsValid(write, w - write.dstArrayElement))
{
write.descriptorCount++;
}