File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4420,7 +4420,7 @@ bool WrappedID3D12GraphicsCommandList::Serialise_ExecuteIndirect(
44204420
44214421 if (m_Cmd->m_FirstEventID > 1 )
44224422 {
4423- const uint32_t argidx = (curEID - baseEventID - 1 );
4423+ const uint32_t argidx = (curEID > baseEventID) ? (curEID - baseEventID - 1 ) : 0 ;
44244424 const uint32_t execidx = argidx / comSig->sig .arguments .count ();
44254425
44264426 argOffset += comSig->sig .ByteStride * execidx;
@@ -4516,7 +4516,7 @@ bool WrappedID3D12GraphicsCommandList::Serialise_ExecuteIndirect(
45164516 }
45174517 else
45184518 {
4519- const uint32_t argidx = (curEID - baseEventID - 1 );
4519+ const uint32_t argidx = (curEID > baseEventID) ? (curEID - baseEventID - 1 ) : 0 ;
45204520 const uint32_t execidx = argidx / comSig->sig .arguments .count ();
45214521
45224522 // don't do anything when selecting the final popmarker as well - everything will have
You can’t perform that action at this time.
0 commit comments