mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 05:11:32 +00:00
Remove dependent temp replacement pipes when removing shader replacement
This commit is contained in:
1 file changed
+9
-1
@@ -1626,7 +1626,15 @@ void D3D12Replay::RemoveReplacement(ResourceId id)
|
||||
|
||||
ResourceId pipeid = rm->GetOriginalID(pipe->GetResourceID());
|
||||
|
||||
rm->RemoveReplacement(pipeid);
|
||||
if(rm->HasReplacement(pipeid))
|
||||
{
|
||||
// if there was an active replacement, remove the dependent replaced pipelines.
|
||||
ID3D12DeviceChild *replpipe = rm->GetLiveResource(pipeid);
|
||||
|
||||
rm->RemoveReplacement(pipeid);
|
||||
|
||||
SAFE_RELEASE(replpipe);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user