mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 15:36:33 +00:00
Wrapped swapchain textures should be tracked in resource manager
This commit is contained in:
@@ -1704,6 +1704,10 @@ IUnknown *WrappedID3D11Device::WrapSwapchainBuffer(IDXGISwapper *swapper, DXGI_F
|
||||
|
||||
record->AddChunk(scope.Get());
|
||||
}
|
||||
else
|
||||
{
|
||||
GetResourceManager()->AddLiveResource(id, pTex);
|
||||
}
|
||||
}
|
||||
|
||||
if(buffer == 0 && IsCaptureMode(m_State) && m_SwapChains[swapper] == NULL)
|
||||
|
||||
@@ -1573,6 +1573,12 @@ IUnknown *WrappedID3D12Device::WrapSwapchainBuffer(IDXGISwapper *swapper, DXGI_F
|
||||
states = {D3D12_RESOURCE_STATE_PRESENT};
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
WrappedID3D12Resource *wrapped = (WrappedID3D12Resource *)pRes;
|
||||
|
||||
GetResourceManager()->AddLiveResource(wrapped->GetResourceID(), wrapped);
|
||||
}
|
||||
}
|
||||
|
||||
if(IsCaptureMode(m_State))
|
||||
|
||||
Reference in New Issue
Block a user