SDL: Only enable D3D11 break-on-error when debugger attached

This commit is contained in:
Connor McLaughlin 2020-04-27 00:53:25 +10:00
parent 84b8987105
commit a8c43b0c8c
1 changed files with 1 additions and 1 deletions

View File

@ -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<ID3D11InfoQueue> info;
hr = m_device.As(&info);