summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Position.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-01-06 17:49:27 +0100
committerTillmann Karras <tilkax@gmail.com>2015-01-18 12:59:33 +0100
commit2cedc0034def0d8e8b23fafceca9a0f87bdd2e63 (patch)
tree6e25924604d446108c73bec6cc61450e7b906d8f /Source/Core/VideoCommon/VertexLoader_Position.cpp
parent68d204e877042f60301f4b0092ff48b872b1d78c (diff)
DataReader: turn WritePointer into GetPointer
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Position.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Position.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Position.cpp b/Source/Core/VideoCommon/VertexLoader_Position.cpp
index 419c041b5b..3313c12b5a 100644
--- a/Source/Core/VideoCommon/VertexLoader_Position.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_Position.cpp
@@ -81,8 +81,8 @@ void LOADERDECL Pos_ReadDirect(VertexLoader* loader)
for (int i = 0; i < 3; ++i)
dst.Write(i<N ? PosScale(src.Read<T>(), scale) : 0.f);
- dst.WritePointer(&g_vertex_manager_write_ptr);
- src.WritePointer(&g_video_buffer_read_ptr);
+ g_vertex_manager_write_ptr = dst.GetPointer();
+ g_video_buffer_read_ptr = src.GetPointer();
LOG_VTX();
}
@@ -101,7 +101,7 @@ void LOADERDECL Pos_ReadIndex(VertexLoader* loader)
for (int i = 0; i < 3; ++i)
dst.Write(i<N ? PosScale(Common::FromBigEndian(data[i]), scale) : 0.f);
- dst.WritePointer(&g_vertex_manager_write_ptr);
+ g_vertex_manager_write_ptr = dst.GetPointer();
LOG_VTX();
}