summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderManager.cpp
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2022-12-29 04:48:24 +0000
committerGitHub <noreply@github.com>2022-12-29 04:48:24 +0000
commit7552deeff4d95d7799c59fe00253a3c1ce86f40b (patch)
treed02963cf983422c73c7672e4a5a14f399d0403c2 /Source/Core/VideoCommon/VertexLoaderManager.cpp
parent82e5f438f954ad822a25eb3261eb9a5d6972ab7f (diff)
parent7e55cc9e9044df8382367c5fbcf0dddd88a80201 (diff)
Merge pull request #11388 from AdmiralCurtiss/globals-vertexshadermanager
VideoCommon: De-globalize VertexShaderManager class.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp
index e788f8e3db..4d0597ba88 100644
--- a/Source/Core/VideoCommon/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp
@@ -361,8 +361,10 @@ int RunVertices(int vtx_attr_group, OpcodeDecoder::Primitive primitive, int coun
}
s_current_vtx_fmt = loader->m_native_vertex_format;
g_current_components = loader->m_native_components;
- VertexShaderManager::SetVertexFormat(loader->m_native_components,
- loader->m_native_vertex_format->GetVertexDeclaration());
+ auto& system = Core::System::GetInstance();
+ auto& vertex_shader_manager = system.GetVertexShaderManager();
+ vertex_shader_manager.SetVertexFormat(loader->m_native_components,
+ loader->m_native_vertex_format->GetVertexDeclaration());
// if cull mode is CULL_ALL, tell VertexManager to skip triangles and quads.
// They still need to go through vertex loading, because we need to calculate a zfreeze refrence