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_TextCoord.cpp | |
| parent | c613868f5788b59855ff564440a12839717aa3d2 (diff) | |
VertexLoader: inline destionation buffer
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_TextCoord.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader_TextCoord.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp b/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp index 37d2407c71..ed97716768 100644 --- a/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp +++ b/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp @@ -56,9 +56,13 @@ template <typename T, int N> void LOADERDECL TexCoord_ReadDirect() { auto const scale = tcScale[tcIndex]; + auto dst = VertexManager::s_pCurBufferPointer; + for (int i = 0; i != N; ++i) - DataWrite(TCScale(DataRead<T>(), scale)); + DataWrite(dst, TCScale(DataRead<T>(), scale)); + + VertexManager::s_pCurBufferPointer = dst; LOG_TEX<N>(); @@ -74,9 +78,12 @@ 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; for (int i = 0; i != N; ++i) - DataWrite(TCScale(Common::FromBigEndian(data[i]), scale)); + DataWrite(dst, TCScale(Common::FromBigEndian(data[i]), scale)); + + VertexManager::s_pCurBufferPointer = dst; LOG_TEX<N>(); ++tcIndex; |
