diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-01-06 17:49:27 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-01-18 12:59:33 +0100 |
| commit | 2cedc0034def0d8e8b23fafceca9a0f87bdd2e63 (patch) | |
| tree | 6e25924604d446108c73bec6cc61450e7b906d8f /Source/Core/VideoCommon/VertexLoaderBase.cpp | |
| parent | 68d204e877042f60301f4b0092ff48b872b1d78c (diff) | |
DataReader: turn WritePointer into GetPointer
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderBase.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderBase.cpp b/Source/Core/VideoCommon/VertexLoaderBase.cpp index ed56db0655..580fb5bf15 100644 --- a/Source/Core/VideoCommon/VertexLoaderBase.cpp +++ b/Source/Core/VideoCommon/VertexLoaderBase.cpp @@ -159,9 +159,7 @@ public: if (memcmp(buffer_a.data(), buffer_b.data(), std::min(count_a, count_b))) ERROR_LOG(VIDEO, "Both vertexloaders have loaded different data."); - u8* dstptr; - dst.WritePointer(&dstptr); - memcpy(dstptr, buffer_a.data(), count_a); + memcpy(dst.GetPointer(), buffer_a.data(), count_a); return count_a; } std::string GetName() const override { return "CompareLoader"; } |
