diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-11-13 22:33:26 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-11-17 21:23:58 -0500 |
| commit | 3d9b2aa0055ded7ee74f6e4a73ff54acecf313a9 (patch) | |
| tree | 0ff92a960d77b6bc8b92bed1c7d61f79206887dc /Source/Core/VideoCommon/FramebufferManager.cpp | |
| parent | 8a621c2d5e7722de5148a0a40d4072445cffb361 (diff) | |
VideoCommon: Migrate over to fmt
Migrates off the printf-based formatting where applicable.
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferManager.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManager.cpp b/Source/Core/VideoCommon/FramebufferManager.cpp index edf4e5427e..06ce4c98e6 100644 --- a/Source/Core/VideoCommon/FramebufferManager.cpp +++ b/Source/Core/VideoCommon/FramebufferManager.cpp @@ -43,38 +43,38 @@ bool FramebufferManager::Initialize() { if (!CreateEFBFramebuffer()) { - PanicAlert("Failed to create EFB framebuffer"); + PanicAlertFmt("Failed to create EFB framebuffer"); return false; } m_efb_cache_tile_size = static_cast<u32>(std::max(g_ActiveConfig.iEFBAccessTileSize, 0)); if (!CreateReadbackFramebuffer()) { - PanicAlert("Failed to create EFB readback framebuffer"); + PanicAlertFmt("Failed to create EFB readback framebuffer"); return false; } if (!CompileReadbackPipelines()) { - PanicAlert("Failed to compile EFB readback pipelines"); + PanicAlertFmt("Failed to compile EFB readback pipelines"); return false; } if (!CompileConversionPipelines()) { - PanicAlert("Failed to compile EFB conversion pipelines"); + PanicAlertFmt("Failed to compile EFB conversion pipelines"); return false; } if (!CompileClearPipelines()) { - PanicAlert("Failed to compile EFB clear pipelines"); + PanicAlertFmt("Failed to compile EFB clear pipelines"); return false; } if (!CompilePokePipelines()) { - PanicAlert("Failed to compile EFB poke pipelines"); + PanicAlertFmt("Failed to compile EFB poke pipelines"); return false; } @@ -89,7 +89,7 @@ void FramebufferManager::RecreateEFBFramebuffer() DestroyReadbackFramebuffer(); DestroyEFBFramebuffer(); if (!CreateEFBFramebuffer() || !CreateReadbackFramebuffer()) - PanicAlert("Failed to recreate EFB framebuffer"); + PanicAlertFmt("Failed to recreate EFB framebuffer"); } void FramebufferManager::RecompileShaders() @@ -101,7 +101,7 @@ void FramebufferManager::RecompileShaders() if (!CompileReadbackPipelines() || !CompileConversionPipelines() || !CompileClearPipelines() || !CompilePokePipelines()) { - PanicAlert("Failed to recompile EFB pipelines"); + PanicAlertFmt("Failed to recompile EFB pipelines"); } } @@ -415,7 +415,7 @@ void FramebufferManager::SetEFBCacheTileSize(u32 size) m_efb_cache_tile_size = size; DestroyReadbackFramebuffer(); if (!CreateReadbackFramebuffer()) - PanicAlert("Failed to create EFB readback framebuffers"); + PanicAlertFmt("Failed to create EFB readback framebuffers"); } void FramebufferManager::InvalidatePeekCache(bool forced) @@ -939,7 +939,7 @@ void FramebufferManager::DoLoadState(PointerWrap& p) if (!color_tex || !depth_tex || color_tex->texture->GetLayers() != m_efb_color_texture->GetLayers()) { - WARN_LOG(VIDEO, "Failed to deserialize EFB contents. Clearing instead."); + WARN_LOG_FMT(VIDEO, "Failed to deserialize EFB contents. Clearing instead."); g_renderer->SetAndClearFramebuffer( m_efb_framebuffer.get(), {{0.0f, 0.0f, 0.0f, 0.0f}}, g_ActiveConfig.backend_info.bSupportsReversedDepthRange ? 1.0f : 0.0f); |
