mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Add additional check on index buffer values being out of bounds
This commit is contained in:
@@ -95,6 +95,10 @@ class Iter_Test(rdtest.TestCase):
|
||||
|
||||
idx = indices[0]
|
||||
|
||||
if idx is None:
|
||||
rdtest.log.print("Index buffer out of bounds for idx 0, skipping")
|
||||
return
|
||||
|
||||
striprestart_index = pipe.GetRestartIndex() & ((1 << (ib.byteStride*8)) - 1)
|
||||
|
||||
if pipe.IsRestartEnabled() and idx == striprestart_index:
|
||||
|
||||
Reference in New Issue
Block a user