mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
remove modified resources from m_LiveIDs
when a resource is replaced, its liveID needs to be replaced as well instead of cached in m_LiveID.
This commit is contained in:
committed by
Baldur Karlsson
parent
348fb914cb
commit
62bbbbdcf7
@@ -1453,6 +1453,9 @@ void ReplayProxy::Proxied_ReplaceResource(ParamSerialiser ¶mser, ReturnSeria
|
||||
m_Remote->ReplaceResource(from, to);
|
||||
}
|
||||
|
||||
if(paramser.IsWriting())
|
||||
m_LiveIDs.erase(from);
|
||||
|
||||
SERIALISE_RETURN_VOID();
|
||||
}
|
||||
|
||||
@@ -1480,6 +1483,9 @@ void ReplayProxy::Proxied_RemoveReplacement(ParamSerialiser ¶mser, ReturnSer
|
||||
m_Remote->RemoveReplacement(id);
|
||||
}
|
||||
|
||||
if(paramser.IsWriting())
|
||||
m_LiveIDs.erase(id);
|
||||
|
||||
SERIALISE_RETURN_VOID();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user