summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderX64.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-03-08 04:43:59 +0100
committerTillmann Karras <tilkax@gmail.com>2015-03-08 04:43:59 +0100
commit3987725217a271d3efd6770314754f1caa30d461 (patch)
tree5e746a0d99d6f36c757263ef52007e019179a296 /Source/Core/VideoCommon/VertexLoaderX64.cpp
parent9c045e24969dd2ea7cd6afa1568826c0b4f88afd (diff)
VertexLoaderX64: fix harmless off-by-one error
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderX64.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderX64.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderX64.cpp b/Source/Core/VideoCommon/VertexLoaderX64.cpp
index fdc50e1b3c..8d01a5d598 100644
--- a/Source/Core/VideoCommon/VertexLoaderX64.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderX64.cpp
@@ -98,9 +98,9 @@ int VertexLoaderX64::ReadVertex(OpArg data, u64 attribute, int format, int count
int elem_size = 1 << (format / 2);
int load_bytes = elem_size * count_in;
- if (load_bytes >= 8)
+ if (load_bytes > 8)
MOVDQU(coords, data);
- else if (load_bytes >= 4)
+ else if (load_bytes > 4)
MOVQ_xmm(coords, data);
else
MOVD_xmm(coords, data);