Skip to content

Commit

Permalink
fix replaying data that is visible in linked replay thread after stop…
Browse files Browse the repository at this point in the history
… marker

this fixes same problem that was observed for single replaying thread
  • Loading branch information
megai2 committed Mar 14, 2020
1 parent 8d89dab commit 50aae36
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions d912pxy/d912pxy_replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,15 @@ void d912pxy_replay::Replay(UINT items, ID3D12GraphicsCommandList * cl, d912pxy_
{
PlayId(item_iter, cl, &context);

if ((item_iter->GetTypeName() == d912pxy_replay_item::typeName::draw_indexed) && linkedThread)
break;
if (linkedThread)
{
if (items)
--items;

if ((item_iter->GetTypeName() == d912pxy_replay_item::typeName::draw_indexed) && !items)
break;

}

item_iter = item_iter->Next();
}
Expand Down

0 comments on commit 50aae36

Please sign in to comment.