diff options
| author | degasus <wickmarkus@web.de> | 2014-01-21 19:23:07 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2014-01-21 19:23:07 +0100 |
| commit | 0b97b33ceb58cd72a9586c438f39866ec032d9a4 (patch) | |
| tree | e518a492ae97f0dda68acecd3a1d57cff03dd486 /Source/Core/VideoCommon/VertexLoader_Normal.cpp | |
| parent | c613868f5788b59855ff564440a12839717aa3d2 (diff) | |
VertexLoader: inline destionation buffer
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader_Normal.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp index 4a3600addd..fc9cf9e554 100644 --- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp +++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp @@ -48,12 +48,15 @@ template <typename T, int N> __forceinline void ReadIndirect(const T* data) { static_assert(3 == N || 9 == N, "N is only sane as 3 or 9!"); + auto dst = VertexManager::s_pCurBufferPointer; for (int i = 0; i != N; ++i) { - DataWrite(FracAdjust(Common::FromBigEndian(data[i]))); + DataWrite(dst, FracAdjust(Common::FromBigEndian(data[i]))); } + VertexManager::s_pCurBufferPointer = dst; + LOG_NORM(); } |
