mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Fix a problem copying stale reference when adding history modifications
This commit is contained in:
@@ -3947,9 +3947,13 @@ rdcarray<PixelModification> VulkanReplay::PixelHistory(rdcarray<EventUsage> even
|
||||
eventPremods[mod.eventId] = mod.preMod;
|
||||
}
|
||||
|
||||
for(int32_t f = 1; f < frags; f++)
|
||||
if(frags > 1)
|
||||
{
|
||||
history.insert(h + 1, mod);
|
||||
PixelModification duplicate = mod;
|
||||
for(int32_t f = 1; f < frags; f++)
|
||||
{
|
||||
history.insert(h + 1, duplicate);
|
||||
}
|
||||
}
|
||||
for(int32_t f = 0; f < frags; f++)
|
||||
history[h + f].fragIndex = f;
|
||||
|
||||
Reference in New Issue
Block a user