mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix refcounting around swapchain resizing on D3D12
This commit is contained in:
@@ -482,6 +482,12 @@ void WrappedID3D12Device::ApplyBarriers(vector<D3D12_RESOURCE_BARRIER> &barriers
|
||||
|
||||
void WrappedID3D12Device::ReleaseSwapchainResources(WrappedIDXGISwapChain3 *swap)
|
||||
{
|
||||
for(int i = 0; i < swap->GetNumBackbuffers(); i++)
|
||||
{
|
||||
WrappedID3D12Resource *wrapped = (WrappedID3D12Resource *)swap->GetBackbuffers()[i];
|
||||
SAFE_RELEASE(wrapped);
|
||||
}
|
||||
|
||||
if(swap)
|
||||
{
|
||||
DXGI_SWAP_CHAIN_DESC desc;
|
||||
|
||||
Reference in New Issue
Block a user