summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Position.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2015-03-21 12:58:24 +1100
committerskidau <skidau@gmail.com>2015-03-21 12:58:24 +1100
commit39c41f5c705730fa760dafdcff7aa23649ffc8ed (patch)
treefb0b4e2d48511f074b2d2f86be834ea518aa1cad /Source/Core/VideoCommon/VertexLoader_Position.cpp
parent63c4bd665e66ba0aba31ed26c7e3eac38afd6cdb (diff)
parent9da86092aeb1fda7470a661a36b794d94aa1e38b (diff)
Merge pull request #2192 from Tilka/sse2
VertexLoaderX64: support SSE2 as a fallback
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Position.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Position.cpp8
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();