VideoCommon: clean up VertexLoader

This commit is contained in:
degasus 2014-12-09 08:35:04 +01:00
parent 02cdb41d3d
commit 3fc7e55cc4
7 changed files with 45 additions and 33 deletions

View file

@ -275,13 +275,17 @@ u8* OpcodeDecoder_Run(DataReader src, u32* cycles, bool in_display_list)
}
else
{
if (!VertexLoaderManager::RunVertices(
int bytes = VertexLoaderManager::RunVertices(
cmd_byte & GX_VAT_MASK, // Vertex loader index (0 - 7)
(cmd_byte & GX_PRIMITIVE_MASK) >> GX_PRIMITIVE_SHIFT,
num_vertices,
src,
g_bSkipCurrentFrame))
g_bSkipCurrentFrame);
if (bytes < 0)
goto end;
else
src.Skip(bytes);
}
totalCycles += 1600;
}