summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2023-11-28 02:04:26 +0000
committerGitHub <noreply@github.com>2023-11-28 02:04:26 +0000
commitb8a897fda76e8979b82472cfd7caf8911bef9145 (patch)
tree0c1a7ddc01c583f334ff63528be98108eb0d9588 /Source/Core/VideoCommon/VertexManagerBase.cpp
parent074de243e30eeda7fedf2971161a82279a36a2e0 (diff)
parent095f946b6648a30faed9601538cf8a2bf8bf8f59 (diff)
Merge pull request #12328 from iwubcode/xf_state_manager
VideoCommon: move xf state management to its own class
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp4
1 files changed, 3 insertions, 1 deletions
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<VertexManagerBase> 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()