mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix check for strip restart, only apply if an index buffer is active
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user