From 3fc7e55cc4623c1c49efb4c317ab0202499bb5fd Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 9 Dec 2014 08:35:04 +0100 Subject: VideoCommon: clean up VertexLoader --- Source/Core/VideoCommon/OpcodeDecoding.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp') diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 12a9d5b350..34b821605f 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -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; } -- cgit v1.2.3