Merge pull request #1905 from degasus/master

VideoSW: Fix vertex skipping
This commit is contained in:
Markus Wick 2015-01-18 04:59:16 +01:00
commit 0acbb88aa2
1 changed files with 4 additions and 1 deletions

View File

@ -173,13 +173,16 @@ void SWVertexLoader::LoadVertex()
// convert the vertex from the gc format to the videocommon (hardware optimized) format // convert the vertex from the gc format to the videocommon (hardware optimized) format
u8* old = g_video_buffer_read_ptr; u8* old = g_video_buffer_read_ptr;
m_CurrentLoader->RunVertices( int converted_vertices = m_CurrentLoader->RunVertices(
m_primitiveType, 1, m_primitiveType, 1,
DataReader(g_video_buffer_read_ptr, nullptr), // src DataReader(g_video_buffer_read_ptr, nullptr), // src
DataReader(m_LoadedVertices.data(), m_LoadedVertices.data() + m_LoadedVertices.size()) // dst DataReader(m_LoadedVertices.data(), m_LoadedVertices.data() + m_LoadedVertices.size()) // dst
); );
g_video_buffer_read_ptr = old + m_CurrentLoader->m_VertexSize; g_video_buffer_read_ptr = old + m_CurrentLoader->m_VertexSize;
if (converted_vertices == 0)
return;
// parse the videocommon format to our own struct format (m_Vertex) // parse the videocommon format to our own struct format (m_Vertex)
ParseVertex(vdec); ParseVertex(vdec);