Merge pull request #8852 from unknownbrackets/clut-fix

Correct CLUT load size
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2016-07-09 21:06:54 +02:00
commit dddb3c39eb
1 file changed
+1 -1
+1 -1
View File
@@ -360,10 +360,10 @@ void TextureCacheCommon::LoadClut(u32 clutAddr, u32 loadBytes) {
}
} else {
#ifdef _M_SSE
int numBlocks = bytes / 16;
if (bytes == loadBytes) {
const __m128i *source = (const __m128i *)Memory::GetPointerUnchecked(clutAddr);
__m128i *dest = (__m128i *)clutBufRaw_;
int numBlocks = bytes / 32;
for (int i = 0; i < numBlocks; i++, source += 2, dest += 2) {
__m128i data1 = _mm_loadu_si128(source);
__m128i data2 = _mm_loadu_si128(source + 1);