summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D12/VideoBackend.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-12-02 20:45:27 +0100
committerGitHub <noreply@github.com>2020-12-02 20:45:27 +0100
commitb148b56fba41e2beb81c61e4d84bbecad0f33a53 (patch)
tree9588abb91d50ca660e9f832eb8d751be73a8413d /Source/Core/VideoBackends/D3D12/VideoBackend.cpp
parent00f2e0e494f644d0a559dc92f9eb94be0fab6913 (diff)
parent139d4fc76e4ddf45179ca5ec5e42c52ef513ea4d (diff)
Merge pull request #9304 from lioncash/panic
General: Convert PanicAlerts over to fmt equivalent
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/VideoBackend.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D12/VideoBackend.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/D3D12/VideoBackend.cpp b/Source/Core/VideoBackends/D3D12/VideoBackend.cpp
index f01a809cad..af25c810c1 100644
--- a/Source/Core/VideoBackends/D3D12/VideoBackend.cpp
+++ b/Source/Core/VideoBackends/D3D12/VideoBackend.cpp
@@ -100,7 +100,7 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
{
if (!DXContext::Create(g_Config.iAdapter, g_Config.bEnableValidationLayer))
{
- PanicAlert("Failed to create D3D12 context");
+ PanicAlertFmtT("Failed to create D3D12 context");
return false;
}
@@ -109,7 +109,7 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
if (!g_dx_context->CreateGlobalResources())
{
- PanicAlert("Failed to create D3D12 global resources");
+ PanicAlertFmtT("Failed to create D3D12 global resources");
DXContext::Destroy();
ShutdownShared();
return false;
@@ -118,7 +118,7 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
std::unique_ptr<SwapChain> swap_chain;
if (wsi.render_surface && !(swap_chain = SwapChain::Create(wsi)))
{
- PanicAlertT("Failed to create D3D swap chain");
+ PanicAlertFmtT("Failed to create D3D swap chain");
DXContext::Destroy();
ShutdownShared();
return false;
@@ -136,7 +136,7 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
!g_renderer->Initialize() || !g_framebuffer_manager->Initialize() ||
!g_texture_cache->Initialize() || !PerfQuery::GetInstance()->Initialize())
{
- PanicAlert("Failed to initialize renderer classes");
+ PanicAlertFmtT("Failed to initialize renderer classes");
Shutdown();
return false;
}