diff options
| author | degasus <wickmarkus@web.de> | 2014-12-09 08:35:04 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2014-12-09 18:56:27 +0100 |
| commit | 3fc7e55cc4623c1c49efb4c317ab0202499bb5fd (patch) | |
| tree | 209e1cfa9fdd77efb6c4cead86c4b797b6d1edd1 /Source/Core/VideoCommon/VertexLoader.cpp | |
| parent | 02cdb41d3d3eec73d2c843fe865ff906e01b44a4 (diff) | |
VideoCommon: clean up VertexLoader
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index e767f46638..f293564e85 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -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) |
