From eaec8ddf3b4c5a11e60cde42728439293721ec8d Mon Sep 17 00:00:00 2001 From: Daniel Kalmar <1355747+kalmard0@users.noreply.github.com> Date: Sat, 31 Aug 2024 20:15:28 +0200 Subject: [PATCH] Fix a crash in renderer_d3d12.cpp (#3349) If querying the debug1 interface fails, don't attempt to release it. --- src/renderer_d3d12.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index e22202ff3b..d3d33369bf 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -858,9 +858,9 @@ namespace bgfx { namespace d3d12 { debug1->SetEnableSynchronizedCommandQueueValidation(false); } - } - DX_RELEASE(debug1, 1); + DX_RELEASE(debug1, 1); + } } #endif // BX_PLATFORM_WINDOWS }