summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Normal.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-11-24 22:22:42 +0100
committerdegasus <wickmarkus@web.de>2014-12-09 18:56:27 +0100
commit27f984c02ee8293f2a1542968bdaff8cc8cedb73 (patch)
tree2ecb543f9ed699b3a8234f263139cb2d5d91a871 /Source/Core/VideoCommon/VertexLoader_Normal.cpp
parent1ad8d4629c36caecacdba33a609b403c5b6cb68d (diff)
VideoCommon: rewrite DataReader
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Normal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
index 8ff5a767e7..c66cedbb78 100644
--- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
@@ -43,13 +43,14 @@ 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!");
- DataWriter dst;
+ DataReader dst(VertexManager::s_pCurBufferPointer, nullptr);
for (int i = 0; i != N; ++i)
{
dst.Write(FracAdjust(Common::FromBigEndian(data[i])));
}
+ dst.WritePointer(&VertexManager::s_pCurBufferPointer);
LOG_NORM();
}