summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Normal.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-01-21 23:44:51 +0100
committerdegasus <wickmarkus@web.de>2014-01-21 23:44:51 +0100
commit3cb5bb3b302809eb089b12d8ad6eb528d7db90ee (patch)
treef26bfa3bb3840eae56374d205907b74e026c7ad1 /Source/Core/VideoCommon/VertexLoader_Normal.cpp
parent0b97b33ceb58cd72a9586c438f39866ec032d9a4 (diff)
VertexLoader: temp class for reader/writer
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Normal.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
index fc9cf9e554..e4fb2c57ce 100644
--- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
@@ -48,15 +48,13 @@ 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;
+ DataWriter dst;
for (int i = 0; i != N; ++i)
{
- DataWrite(dst, FracAdjust(Common::FromBigEndian(data[i])));
+ dst.Write(FracAdjust(Common::FromBigEndian(data[i])));
}
- VertexManager::s_pCurBufferPointer = dst;
-
LOG_NORM();
}