summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2021-04-30 14:48:27 -0700
committerPokechu22 <Pokechu022@gmail.com>2021-12-18 12:51:56 -0800
commit3fc12431c5ed7a0df1e9bd4c538405a44f6561de (patch)
treee7cac9f9f609c06bac007209c8048b96ced9891c /Source/Core/VideoBackends/Software
parent205ab23d80e5c1975a1e022fa171ea55563ea1c7 (diff)
Remove parameters to SWVertexLoader::SetFormat
They haven't been used since efbe5bc4b65.
Diffstat (limited to 'Source/Core/VideoBackends/Software')
-rw-r--r--Source/Core/VideoBackends/Software/SWVertexLoader.cpp4
-rw-r--r--Source/Core/VideoBackends/Software/SWVertexLoader.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/Software/SWVertexLoader.cpp b/Source/Core/VideoBackends/Software/SWVertexLoader.cpp
index 5c0362b2c5..738162de80 100644
--- a/Source/Core/VideoBackends/Software/SWVertexLoader.cpp
+++ b/Source/Core/VideoBackends/Software/SWVertexLoader.cpp
@@ -74,7 +74,7 @@ void SWVertexLoader::DrawCurrentBatch(u32 base_index, u32 num_indices, u32 base_
memset(static_cast<void*>(&m_vertex), 0, sizeof(m_vertex));
// parse the videocommon format to our own struct format (m_vertex)
- SetFormat(g_main_cp_state.last_id, primitiveType);
+ SetFormat();
ParseVertex(VertexLoaderManager::GetCurrentVertexFormat()->GetVertexDeclaration(), index);
// transform this vertex so that it can be used for rasterization (outVertex)
@@ -98,7 +98,7 @@ void SWVertexLoader::DrawCurrentBatch(u32 base_index, u32 num_indices, u32 base_
DebugUtil::OnObjectEnd();
}
-void SWVertexLoader::SetFormat(u8 attributeIndex, u8 primitiveType)
+void SWVertexLoader::SetFormat()
{
// matrix index from xf regs or cp memory?
if (xfmem.MatrixIndexA.PosNormalMtxIdx != g_main_cp_state.matrix_index_a.PosNormalMtxIdx ||
diff --git a/Source/Core/VideoBackends/Software/SWVertexLoader.h b/Source/Core/VideoBackends/Software/SWVertexLoader.h
index 4bc9f67ca8..bbda8da037 100644
--- a/Source/Core/VideoBackends/Software/SWVertexLoader.h
+++ b/Source/Core/VideoBackends/Software/SWVertexLoader.h
@@ -22,7 +22,7 @@ public:
protected:
void DrawCurrentBatch(u32 base_index, u32 num_indices, u32 base_vertex) override;
- void SetFormat(u8 attributeIndex, u8 primitiveType);
+ void SetFormat();
void ParseVertex(const PortableVertexDeclaration& vdec, int index);
InputVertexData m_vertex{};