diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-03-17 07:05:19 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-03-18 12:09:06 +0100 |
| commit | 8d90ecda7f8e08a37964f8664aed571dbc6e9051 (patch) | |
| tree | df4931e65ef328137a180e8b23f815faace06ec3 /Source/Core/VideoCommon/VertexLoader_Position.cpp | |
| parent | 5a51bc10e56c8709b55fe53cb438f7a42ac09ad4 (diff) | |
VertexLoaders: make positions more compact
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Position.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader_Position.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Position.cpp b/Source/Core/VideoCommon/VertexLoader_Position.cpp index 18460ff1e1..3c30d05ed6 100644 --- a/Source/Core/VideoCommon/VertexLoader_Position.cpp +++ b/Source/Core/VideoCommon/VertexLoader_Position.cpp @@ -30,8 +30,8 @@ void LOADERDECL Pos_ReadDirect(VertexLoader* loader) DataReader dst(g_vertex_manager_write_ptr, nullptr); DataReader src(g_video_buffer_read_ptr, nullptr); - for (int i = 0; i < 3; ++i) - dst.Write(i < N ? PosScale(src.Read<T>(), scale) : 0.f); + for (int i = 0; i < N; ++i) + dst.Write(PosScale(src.Read<T>(), scale)); g_vertex_manager_write_ptr = dst.GetPointer(); g_video_buffer_read_ptr = src.GetPointer(); @@ -50,8 +50,8 @@ void LOADERDECL Pos_ReadIndex(VertexLoader* loader) auto const scale = loader->m_posScale; DataReader dst(g_vertex_manager_write_ptr, nullptr); - for (int i = 0; i < 3; ++i) - dst.Write(i < N ? PosScale(Common::FromBigEndian(data[i]), scale) : 0.f); + for (int i = 0; i < N; ++i) + dst.Write(PosScale(Common::FromBigEndian(data[i]), scale)); g_vertex_manager_write_ptr = dst.GetPointer(); LOG_VTX(); |
