diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-02-12 18:50:10 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-02-13 12:16:06 -0600 |
| commit | 15e41c67f8fdb527af3267790154538454412596 (patch) | |
| tree | 714b19bc53b831ce4b80d9d5efd5e520bedbc7a0 /Source/Core/VideoCommon/VertexLoaderBase.cpp | |
| parent | b989c2fd8fc81c6b9f4746a3bed8bee6238d3f14 (diff) | |
Change RunVertices' function arguments.
This reduces some dumb state shuffling when calling the emitted vertex loaders.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderBase.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderBase.cpp b/Source/Core/VideoCommon/VertexLoaderBase.cpp index b17731509d..c8ab14fb3b 100644 --- a/Source/Core/VideoCommon/VertexLoaderBase.cpp +++ b/Source/Core/VideoCommon/VertexLoaderBase.cpp @@ -159,13 +159,13 @@ public: delete b; } - int RunVertices(int primitive, int count, DataReader src, DataReader dst) override + int RunVertices(DataReader src, DataReader dst, int count, int primitive) override { buffer_a.resize(count * a->m_native_vtx_decl.stride + 4); buffer_b.resize(count * b->m_native_vtx_decl.stride + 4); - int count_a = a->RunVertices(primitive, count, src, DataReader(buffer_a.data(), buffer_a.data()+buffer_a.size())); - int count_b = b->RunVertices(primitive, count, src, DataReader(buffer_b.data(), buffer_b.data()+buffer_b.size())); + int count_a = a->RunVertices(src, DataReader(buffer_a.data(), buffer_a.data()+buffer_a.size()), count, primitive); + int count_b = b->RunVertices(src, DataReader(buffer_b.data(), buffer_b.data()+buffer_b.size()), count, primitive); if (count_a != count_b) ERROR_LOG(VIDEO, "The two vertex loaders have loaded a different amount of vertices (a: %d, b: %d).", count_a, count_b); |
