mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-28 16:15:41 -04:00
SDL: Only enable D3D11 break-on-error when debugger attached
This commit is contained in:
parent
84b8987105
commit
a8c43b0c8c
@ -273,7 +273,7 @@ bool D3D11HostDisplay::CreateD3DDevice(bool debug_device)
|
|||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
Log_WarningPrintf("MakeWindowAssociation() to disable ALT+ENTER failed");
|
Log_WarningPrintf("MakeWindowAssociation() to disable ALT+ENTER failed");
|
||||||
|
|
||||||
if (debug_device)
|
if (debug_device && IsDebuggerPresent())
|
||||||
{
|
{
|
||||||
ComPtr<ID3D11InfoQueue> info;
|
ComPtr<ID3D11InfoQueue> info;
|
||||||
hr = m_device.As(&info);
|
hr = m_device.As(&info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user