VertexLoaderX64: fix harmless off-by-one error

This commit is contained in:
Tillmann Karras 2015-03-08 04:43:59 +01:00
parent 9c045e2496
commit 3987725217
1 changed files with 2 additions and 2 deletions

View File

@ -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);