summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader.cpp7
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)