Fix check for strip restart, only apply if an index buffer is active

This commit is contained in:
baldurk
2019-05-24 17:11:41 +01:00
parent 3999dd0091
commit 6e2e2abb22
+1 -1
View File
@@ -227,7 +227,7 @@ def decode_mesh_data(controller: rd.ReplayController, indices: List[int], attrs:
# Calculate the strip restart index for this index width
striprestart_index = None
if controller.GetPipelineState().IsStripRestartEnabled():
if controller.GetPipelineState().IsStripRestartEnabled() and attrs[0].mesh.indexResourceId != rd.ResourceId.Null():
striprestart_index = (controller.GetPipelineState().GetStripRestartIndex() &
((1 << (attrs[0].mesh.indexByteStride*8)) - 1))