From 84b898710594af6c539b88eda78280aca4fe533f Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 27 Apr 2020 00:53:17 +1000 Subject: [PATCH] Qt: Only enable D3D11 break-on-error when debugger attached --- src/duckstation-qt/d3d11hostdisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duckstation-qt/d3d11hostdisplay.cpp b/src/duckstation-qt/d3d11hostdisplay.cpp index f254fad2d..f91c40f6c 100644 --- a/src/duckstation-qt/d3d11hostdisplay.cpp +++ b/src/duckstation-qt/d3d11hostdisplay.cpp @@ -167,7 +167,7 @@ bool D3D11HostDisplay::createDeviceContext(bool debug_device) return false; } - if (debug_device) + if (debug_device && IsDebuggerPresent()) { ComPtr info; hr = m_device.As(&info);