Merge pull request #51 from JosJuice/xfb-gray-non-x86

Make uninitialized XFB gray on non-x86 systems too
This commit is contained in:
David Liu 2020-09-06 01:34:58 -04:00 committed by GitHub
commit 27fb7d8b5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2428,16 +2428,7 @@ void TextureCacheBase::UninitializeXFBMemory(u8* dst, u32 stride, u32 bytes_per_
}
#endif
for (u32 offset = 0; offset < size; offset++)
{
if (offset & 1)
{
rowdst[offset] = 254;
}
else
{
rowdst[offset] = 1;
}
}
rowdst[offset] = 0x80;
dst += stride;
}
}