From e2de28189782feed870ac367e28b93c6b4458351 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Tue, 31 Jan 2023 22:40:43 +1300 Subject: [PATCH] Make sure pixel shaders pick up Initial EFB Scale --- .../Core/VideoCommon/PixelShaderManager.cpp | 2 +- Source/Core/VideoCommon/VideoBackendBase.cpp | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp index 94b37be4e8..786c5d6177 100644 --- a/Source/Core/VideoCommon/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/PixelShaderManager.cpp @@ -65,7 +65,7 @@ void PixelShaderManager::Init() } } - dirty = true; + Dirty(); } void PixelShaderManager::Dirty() diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index 95b58322d2..7788fe0dfb 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -362,6 +362,16 @@ bool VideoBackendBase::InitializeShared(std::unique_ptr gfx, g_graphics_mod_manager = std::make_unique(); g_widescreen = std::make_unique(); + if (!g_vertex_manager->Initialize() || !g_shader_cache->Initialize() || + !g_perf_query->Initialize() || !g_presenter->Initialize() || + !g_framebuffer_manager->Initialize() || !g_texture_cache->Initialize() || + !g_bounding_box->Initialize() || !g_graphics_mod_manager->Initialize()) + { + PanicAlertFmtT("Failed to initialize renderer classes"); + Shutdown(); + return false; + } + auto& system = Core::System::GetInstance(); auto& command_processor = system.GetCommandProcessor(); command_processor.Init(system); @@ -374,16 +384,6 @@ bool VideoBackendBase::InitializeShared(std::unique_ptr gfx, system.GetPixelShaderManager().Init(); TMEM::Init(); - if (!g_vertex_manager->Initialize() || !g_shader_cache->Initialize() || - !g_perf_query->Initialize() || !g_presenter->Initialize() || - !g_framebuffer_manager->Initialize() || !g_texture_cache->Initialize() || - !g_bounding_box->Initialize() || !g_graphics_mod_manager->Initialize()) - { - PanicAlertFmtT("Failed to initialize renderer classes"); - Shutdown(); - return false; - } - g_Config.VerifyValidity(); UpdateActiveConfig();