diff options
Diffstat (limited to 'tools/gfx/debug-layer')
| -rw-r--r-- | tools/gfx/debug-layer/debug-swap-chain.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gfx/debug-layer/debug-swap-chain.cpp b/tools/gfx/debug-layer/debug-swap-chain.cpp index 3c8058b5c..b1d3bc201 100644 --- a/tools/gfx/debug-layer/debug-swap-chain.cpp +++ b/tools/gfx/debug-layer/debug-swap-chain.cpp @@ -55,8 +55,10 @@ Result DebugSwapchain::resize(GfxCount width, GfxCount height) { if (image->debugGetReferenceCount() != 1) { - GFX_DIAGNOSE_ERROR("all swapchain images must be released before calling resize()."); - return SLANG_FAIL; + // Only warn here because tools like NSight might keep + // an additional reference to swapchain images. + GFX_DIAGNOSE_WARNING("all swapchain images must be released before calling resize()."); + break; } } m_images.clearAndDeallocate(); |
