Ensure GL pixel history always replays all events even when skipping

This commit is contained in:
baldurk
2023-04-17 13:41:13 +01:00
parent 37a4c195f7
commit 1792f9c9ab
+10
View File
@@ -824,6 +824,10 @@ rdcarray<EventUsage> QueryModifyingEvents(WrappedOpenGL *driver, GLPixelHistoryR
state.ApplyState(driver);
}
else
{
driver->ReplayLog(events[i].eventId, events[i].eventId, eReplay_OnlyDraw);
}
if(i < events.size() - 1)
{
@@ -2015,6 +2019,12 @@ void CalculateFragmentDepthTests(WrappedOpenGL *driver, GLPixelHistoryResources
{
++historyIndex;
}
if(i < modEvents.size() - 1)
{
driver->ReplayLog(modEvents[i].eventId, modEvents[i + 1].eventId, eReplay_WithoutDraw);
}
continue;
}