General: Convert PanicAlerts over to fmt equivalent
Converts lingering panic alert calls over to the fmt-capable ones.
This commit is contained in:
1 parent
5abae61a8c
commit
139d4fc76e
45 files changed
+206
-195
No files matched your search
@@ -126,7 +126,7 @@ bool SwapChain::CreateSwapChain(bool stereo)
|
||||
|
||||
if (FAILED(hr))
|
||||
{
|
||||
PanicAlert("Failed to create swap chain with HRESULT %08X", hr);
|
||||
PanicAlertFmt("Failed to create swap chain with HRESULT {:08X}", hr);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ bool SwapChain::CreateSwapChain(bool stereo)
|
||||
m_stereo = stereo;
|
||||
if (!CreateSwapChainBuffers())
|
||||
{
|
||||
PanicAlert("Failed to create swap chain buffers");
|
||||
PanicAlertFmt("Failed to create swap chain buffers");
|
||||
DestroySwapChainBuffers();
|
||||
m_swap_chain.Reset();
|
||||
return false;
|
||||
@@ -187,7 +187,7 @@ void SwapChain::SetStereo(bool stereo)
|
||||
DestroySwapChain();
|
||||
if (!CreateSwapChain(stereo))
|
||||
{
|
||||
PanicAlert("Failed to switch swap chain stereo mode");
|
||||
PanicAlertFmt("Failed to switch swap chain stereo mode");
|
||||
CreateSwapChain(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user