From 6e2e2abb22d23578b9eaa137e6e5379f07117cab Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 24 May 2019 17:11:41 +0100 Subject: [PATCH] Fix check for strip restart, only apply if an index buffer is active --- util/test/rdtest/analyse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/test/rdtest/analyse.py b/util/test/rdtest/analyse.py index 21a866897..a16b63804 100644 --- a/util/test/rdtest/analyse.py +++ b/util/test/rdtest/analyse.py @@ -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))