summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_TextCoord.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_TextCoord.cpp
parent0b97b33ceb58cd72a9586c438f39866ec032d9a4 (diff)
VertexLoader: temp class for reader/writer
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_TextCoord.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_TextCoord.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp b/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp
index ed97716768..dae72e22b8 100644
--- a/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp
@@ -56,13 +56,11 @@ template <typename T, int N>
void LOADERDECL TexCoord_ReadDirect()
{
auto const scale = tcScale[tcIndex];
- auto dst = VertexManager::s_pCurBufferPointer;
-
+ DataWriter dst;
+ DataReader src;
for (int i = 0; i != N; ++i)
- DataWrite(dst, TCScale(DataRead<T>(), scale));
-
- VertexManager::s_pCurBufferPointer = dst;
+ dst.Write(TCScale(src.Read<T>(), scale));
LOG_TEX<N>();
@@ -78,12 +76,10 @@ void LOADERDECL TexCoord_ReadIndex()
auto const data = reinterpret_cast<const T*>(cached_arraybases[ARRAY_TEXCOORD0 + tcIndex]
+ (index * arraystrides[ARRAY_TEXCOORD0 + tcIndex]));
auto const scale = tcScale[tcIndex];
- auto dst = VertexManager::s_pCurBufferPointer;
+ DataWriter dst;
for (int i = 0; i != N; ++i)
- DataWrite(dst, TCScale(Common::FromBigEndian(data[i]), scale));
-
- VertexManager::s_pCurBufferPointer = dst;
+ dst.Write(TCScale(Common::FromBigEndian(data[i]), scale));
LOG_TEX<N>();
++tcIndex;