mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-19 13:06:38 +00:00
Prevent crash if programmatic capture happens after deleting swapchain
This commit is contained in:
@@ -1635,6 +1635,9 @@ void WrappedID3D11Device::ReleaseSwapchainResources(IDXGISwapper *swapper, UINT
|
||||
IUnknown *const *ppPresentQueue,
|
||||
IUnknown **unwrappedQueues)
|
||||
{
|
||||
if(m_LastSwap == swapper)
|
||||
m_LastSwap = NULL;
|
||||
|
||||
RDCASSERT(ppPresentQueue == NULL);
|
||||
|
||||
if(ppPresentQueue)
|
||||
|
||||
@@ -1701,6 +1701,9 @@ void WrappedID3D12Device::ReleaseSwapchainResources(IDXGISwapper *swapper, UINT
|
||||
IUnknown *const *ppPresentQueue,
|
||||
IUnknown **unwrappedQueues)
|
||||
{
|
||||
if(m_LastSwap == swapper)
|
||||
m_LastSwap = NULL;
|
||||
|
||||
if(ppPresentQueue)
|
||||
{
|
||||
for(UINT i = 0; i < QueueCount; i++)
|
||||
|
||||
Reference in New Issue
Block a user