From 3cb5bb3b302809eb089b12d8ad6eb528d7db90ee Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 21 Jan 2014 23:44:51 +0100 Subject: VertexLoader: temp class for reader/writer --- Source/Core/VideoCommon/VertexLoader_Position.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'Source/Core/VideoCommon/VertexLoader_Position.cpp') diff --git a/Source/Core/VideoCommon/VertexLoader_Position.cpp b/Source/Core/VideoCommon/VertexLoader_Position.cpp index 6163272fb1..ee26acfbe7 100644 --- a/Source/Core/VideoCommon/VertexLoader_Position.cpp +++ b/Source/Core/VideoCommon/VertexLoader_Position.cpp @@ -77,12 +77,11 @@ void LOADERDECL Pos_ReadDirect() { static_assert(N <= 3, "N > 3 is not sane!"); auto const scale = posScale; - auto dst = VertexManager::s_pCurBufferPointer; + DataWriter dst; + DataReader src; for (int i = 0; i < 3; ++i) - DataWrite(dst, i(), scale) : 0.f); - - VertexManager::s_pCurBufferPointer = dst; + dst.Write(i(), scale) : 0.f); LOG_VTX(); } @@ -96,12 +95,10 @@ void LOADERDECL Pos_ReadIndex() auto const index = DataRead(); auto const data = reinterpret_cast(cached_arraybases[ARRAY_POSITION] + (index * arraystrides[ARRAY_POSITION])); auto const scale = posScale; - auto dst = VertexManager::s_pCurBufferPointer; + DataWriter dst; for (int i = 0; i < 3; ++i) - DataWrite(dst, i