mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-18 23:42:05 +00:00
Merge pull request #51 from JosJuice/xfb-gray-non-x86
Make uninitialized XFB gray on non-x86 systems too
This commit is contained in:
commit
27fb7d8b5b
1 changed files with 1 additions and 10 deletions
|
@ -2428,16 +2428,7 @@ void TextureCacheBase::UninitializeXFBMemory(u8* dst, u32 stride, u32 bytes_per_
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
for (u32 offset = 0; offset < size; offset++)
|
for (u32 offset = 0; offset < size; offset++)
|
||||||
{
|
rowdst[offset] = 0x80;
|
||||||
if (offset & 1)
|
|
||||||
{
|
|
||||||
rowdst[offset] = 254;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
rowdst[offset] = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
dst += stride;
|
dst += stride;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue