summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-11-12 14:51:28 +0100
committerGitHub <noreply@github.com>2020-11-12 14:51:28 +0100
commit8a621c2d5e7722de5148a0a40d4072445cffb361 (patch)
tree99878aba6ea4a45ff473092a7f9b8d1db7892ced /Source/Core/VideoBackends/D3DCommon/SwapChain.cpp
parentec5313fe24fe0b301603466c12f402fc08605813 (diff)
parent21dd7a8ebb23ab05373ab65558a7a47927f402f1 (diff)
Merge pull request #9236 from lioncash/log-backend
VideoBackends: Migrate logging over to fmt
Diffstat (limited to 'Source/Core/VideoBackends/D3DCommon/SwapChain.cpp')
-rw-r--r--Source/Core/VideoBackends/D3DCommon/SwapChain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp b/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp
index e0bca9158b..ff344a993d 100644
--- a/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp
+++ b/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp
@@ -134,7 +134,7 @@ bool SwapChain::CreateSwapChain(bool stereo)
hr = m_dxgi_factory->MakeWindowAssociation(static_cast<HWND>(m_wsi.render_surface),
DXGI_MWA_NO_WINDOW_CHANGES | DXGI_MWA_NO_ALT_ENTER);
if (FAILED(hr))
- WARN_LOG(VIDEO, "MakeWindowAssociation() failed with HRESULT %08X", hr);
+ WARN_LOG_FMT(VIDEO, "MakeWindowAssociation() failed with HRESULT {:08X}", hr);
m_stereo = stereo;
if (!CreateSwapChainBuffers())
@@ -167,7 +167,7 @@ bool SwapChain::ResizeSwapChain()
GetDXGIFormatForAbstractFormat(m_texture_format, false),
GetSwapChainFlags());
if (FAILED(hr))
- WARN_LOG(VIDEO, "ResizeBuffers() failed with HRESULT %08X", hr);
+ WARN_LOG_FMT(VIDEO, "ResizeBuffers() failed with HRESULT {:08X}", hr);
DXGI_SWAP_CHAIN_DESC desc;
if (SUCCEEDED(m_swap_chain->GetDesc(&desc)))
@@ -237,7 +237,7 @@ bool SwapChain::Present()
HRESULT hr = m_swap_chain->Present(static_cast<UINT>(g_ActiveConfig.bVSyncActive), present_flags);
if (FAILED(hr))
{
- WARN_LOG(VIDEO, "Swap chain present failed with HRESULT %08X", hr);
+ WARN_LOG_FMT(VIDEO, "Swap chain present failed with HRESULT {:08X}", hr);
return false;
}