Skip to content

Commit

Permalink
Remove parameters to SWVertexLoader::SetFormat
Browse files Browse the repository at this point in the history
They haven't been used since efbe5bc.
  • Loading branch information
Pokechu22 committed Dec 18, 2021
1 parent 205ab23 commit 3fc1243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Core/VideoBackends/Software/SWVertexLoader.cpp
Expand Up @@ -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)
Expand All @@ -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 ||
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/Software/SWVertexLoader.h
Expand Up @@ -22,7 +22,7 @@ class SWVertexLoader final : public VertexManagerBase
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{};
Expand Down

0 comments on commit 3fc1243

Please sign in to comment.