summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2022-12-29 15:25:09 +0000
committerGitHub <noreply@github.com>2022-12-29 15:25:09 +0000
commit2a8f3e457d258ab74ec0282a39a82a9ca6ceeb35 (patch)
tree2e7850cc1986e40e11c112b57fc8643611338ab9 /Source/Core/VideoCommon/VertexManagerBase.cpp
parent1bfecd8003316462794d4788e6ee888e6b735d5a (diff)
parentcb0a603c72cc8b80cfe162f1deebf0aedaa45e0c (diff)
Merge pull request #11391 from AdmiralCurtiss/globals-geometryshadermanager
VideoCommon: De-globalize GeometryShaderManager class.
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp
index 03eed59a88..88d7c47fba 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/VertexManagerBase.cpp
@@ -320,9 +320,10 @@ void VertexManagerBase::InvalidateConstants()
{
auto& system = Core::System::GetInstance();
auto& vertex_shader_manager = system.GetVertexShaderManager();
+ auto& geometry_shader_manager = system.GetGeometryShaderManager();
auto& pixel_shader_manager = system.GetPixelShaderManager();
vertex_shader_manager.dirty = true;
- GeometryShaderManager::dirty = true;
+ geometry_shader_manager.dirty = true;
pixel_shader_manager.dirty = true;
}
@@ -487,6 +488,7 @@ void VertexManagerBase::Flush()
auto& system = Core::System::GetInstance();
auto& pixel_shader_manager = system.GetPixelShaderManager();
+ auto& geometry_shader_manager = system.GetGeometryShaderManager();
auto& vertex_shader_manager = system.GetVertexShaderManager();
CalculateBinormals(VertexLoaderManager::GetCurrentVertexFormat());
@@ -566,7 +568,7 @@ void VertexManagerBase::Flush()
g_texture_cache->BindTextures(used_textures);
// Now we can upload uniforms, as nothing else will override them.
- GeometryShaderManager::SetConstants(m_current_primitive_type);
+ geometry_shader_manager.SetConstants(m_current_primitive_type);
pixel_shader_manager.SetConstants();
UploadUniforms();