diff options
| author | skidau <skidau@gmail.com> | 2015-03-21 12:58:24 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2015-03-21 12:58:24 +1100 |
| commit | 39c41f5c705730fa760dafdcff7aa23649ffc8ed (patch) | |
| tree | fb0b4e2d48511f074b2d2f86be834ea518aa1cad /Source/Core/VideoCommon/VertexLoader_Position.cpp | |
| parent | 63c4bd665e66ba0aba31ed26c7e3eac38afd6cdb (diff) | |
| parent | 9da86092aeb1fda7470a661a36b794d94aa1e38b (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.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(); |
