From 849a0c13b5fbfc31b38e2b2593b1213b8adfb9f4 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 25 Nov 2023 16:23:54 -0600 Subject: VideoCommon: move xf state management to its own class, so changes can be detected in places other than VertexShaderManager --- Source/Core/VideoCommon/VertexManagerBase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp') diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp index a7da900268..65772f3dad 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.cpp +++ b/Source/Core/VideoCommon/VertexManagerBase.cpp @@ -42,6 +42,7 @@ #include "VideoCommon/VideoCommon.h" #include "VideoCommon/VideoConfig.h" #include "VideoCommon/XFMemory.h" +#include "VideoCommon/XFStateManager.h" std::unique_ptr g_vertex_manager; @@ -539,6 +540,7 @@ void VertexManagerBase::Flush() auto& pixel_shader_manager = system.GetPixelShaderManager(); auto& geometry_shader_manager = system.GetGeometryShaderManager(); auto& vertex_shader_manager = system.GetVertexShaderManager(); + auto& xf_state_manager = system.GetXFStateManager(); if (g_ActiveConfig.bGraphicMods) { @@ -578,7 +580,7 @@ void VertexManagerBase::Flush() } } } - vertex_shader_manager.SetConstants(texture_names); + vertex_shader_manager.SetConstants(texture_names, xf_state_manager); if (!bpmem.genMode.zfreeze) { // Must be done after VertexShaderManager::SetConstants() -- cgit v1.2.3