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

@ -491,12 +491,13 @@ void VertexLoader::ConvertVertices ( int count )
#endif
}
void VertexLoader::RunVertices(const VAT& vat, int primitive, int const count)
int VertexLoader::RunVertices(const VAT& vat, int primitive, int count, DataReader src, DataReader dst)
{
g_vertex_manager_write_ptr = g_vertex_manager->s_pCurBufferPointer;
dst.WritePointer(&g_vertex_manager_write_ptr);
src.WritePointer(&g_video_buffer_read_ptr);
SetupRunVertices(vat, primitive, count);
ConvertVertices(count);
g_vertex_manager->s_pCurBufferPointer = g_vertex_manager_write_ptr;
return count;
}
void VertexLoader::SetVAT(const VAT& vat)