From a8c43b0c8c10e2a46bc5b07e72eca51bff9a25cb Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 27 Apr 2020 00:53:25 +1000 Subject: [PATCH] SDL: Only enable D3D11 break-on-error when debugger attached --- src/duckstation-sdl/d3d11_host_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duckstation-sdl/d3d11_host_display.cpp b/src/duckstation-sdl/d3d11_host_display.cpp index 2aea166d4..20d04eaea 100644 --- a/src/duckstation-sdl/d3d11_host_display.cpp +++ b/src/duckstation-sdl/d3d11_host_display.cpp @@ -273,7 +273,7 @@ bool D3D11HostDisplay::CreateD3DDevice(bool debug_device) if (FAILED(hr)) Log_WarningPrintf("MakeWindowAssociation() to disable ALT+ENTER failed"); - if (debug_device) + if (debug_device && IsDebuggerPresent()) { ComPtr info; hr = m_device.As(&info);