Handle an InstanceDataStepRate of 0 as all data being identical

This commit is contained in:
baldurk committed 2017-05-15 16:29:14 +01:00
1 parent 88f5da6f04
commit 51c4a6365a
1 file changed
+1 -1
+1 -1
View File
@@ -1063,7 +1063,7 @@ ShaderDebugTrace D3D11DebugManager::DebugVertex(uint32_t eventID, uint32_t verti
}
else
{
if(el->InstanceDataStepRate >= draw->numInstances)
if(el->InstanceDataStepRate == 0 || el->InstanceDataStepRate >= draw->numInstances)
{
srcData = &staticData[el->InputSlot][el->AlignedByteOffset];
dataSize = staticData[el->InputSlot].size() - el->AlignedByteOffset;