From cc441c10579fdb89191804158a0a0efa631782fb Mon Sep 17 00:00:00 2001 From: Filoppi Date: Tue, 15 Apr 2025 06:54:52 +0300 Subject: [PATCH] GS: Fix displays that are currently unplugged (disabled) from throwing unnecessary warnings --- pcsx2/GS/Renderers/DX11/D3D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/DX11/D3D.cpp b/pcsx2/GS/Renderers/DX11/D3D.cpp index 88f85c4d28..7cc6b4463a 100644 --- a/pcsx2/GS/Renderers/DX11/D3D.cpp +++ b/pcsx2/GS/Renderers/DX11/D3D.cpp @@ -87,6 +87,7 @@ std::vector D3D::GetAdapterInfo(IDXGIFactory5* factory) ai.max_upscale_multiplier = GSGetMaxUpscaleMultiplier(ai.max_texture_size); wil::com_ptr_nothrow output; + // Only check the first output, which would be the primary display (if any is connected) if (SUCCEEDED(hr = adapter->EnumOutputs(0, &output))) { UINT num_modes = 0; @@ -111,7 +112,7 @@ std::vector D3D::GetAdapterInfo(IDXGIFactory5* factory) ERROR_LOG("GetDisplayModeList() failed: {:08X}", static_cast(hr)); } } - else + else if (hr != DXGI_ERROR_NOT_FOUND) { ERROR_LOG("EnumOutputs() failed: {:08X}", static_cast(hr)); }