Skip to content

Commit

Permalink
VertexLoaderX64: fix harmless off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilka committed Mar 8, 2015
1 parent 9c045e2 commit 3987725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/VideoCommon/VertexLoaderX64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3987725

Please sign in to comment.