From 3987725217a271d3efd6770314754f1caa30d461 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 8 Mar 2015 04:43:59 +0100 Subject: [PATCH] VertexLoaderX64: fix harmless off-by-one error --- Source/Core/VideoCommon/VertexLoaderX64.cpp | 4 ++-- 1 file 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);