summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderManager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-08-21 23:02:37 -0400
committerLioncash <mathew1800@gmail.com>2016-08-21 23:30:38 -0400
commit1392efa91dfb2d86d6a66697212aa078c2f1ddd8 (patch)
tree0fe89b6d4310a9c72adf35f35f1e3fed5ca5b352 /Source/Core/VideoCommon/VertexLoaderManager.cpp
parentf1964f90d647251b677b3de29d08c4c22ea5344a (diff)
VertexManagerBase: Get rid of static behavior
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp
index 7975ea1eb7..e9c4533244 100644
--- a/Source/Core/VideoCommon/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp
@@ -196,7 +196,7 @@ int RunVertices(int vtx_attr_group, int primitive, int count, DataReader src, bo
if (loader->m_native_vertex_format != s_current_vtx_fmt ||
loader->m_native_components != g_current_components)
{
- VertexManagerBase::Flush();
+ g_vertex_manager->Flush();
}
s_current_vtx_fmt = loader->m_native_vertex_format;
g_current_components = loader->m_native_components;
@@ -206,14 +206,14 @@ int RunVertices(int vtx_attr_group, int primitive, int count, DataReader src, bo
// slope.
bool cullall = (bpmem.genMode.cullmode == GenMode::CULL_ALL && primitive < 5);
- DataReader dst = VertexManagerBase::PrepareForAdditionalData(
+ DataReader dst = g_vertex_manager->PrepareForAdditionalData(
primitive, count, loader->m_native_vtx_decl.stride, cullall);
count = loader->RunVertices(src, dst, count);
IndexGenerator::AddIndices(primitive, count);
- VertexManagerBase::FlushData(count, loader->m_native_vtx_decl.stride);
+ g_vertex_manager->FlushData(count, loader->m_native_vtx_decl.stride);
ADDSTAT(stats.thisFrame.numPrims, count);
INCSTAT(stats.thisFrame.numPrimitiveJoins);