mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
correct TexDecoder_GetTextureSizeInBytes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1397 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a54e7ba3ad
commit
aa05c2173e
@ -59,7 +59,7 @@ int TexDecoder_GetTexelSizeInNibbles(int format)
|
||||
|
||||
int TexDecoder_GetTextureSizeInBytes(int width, int height, int format)
|
||||
{
|
||||
return (width * height * TexDecoder_GetTexelSizeInNibbles(format)) / 4;
|
||||
return (width * height * TexDecoder_GetTexelSizeInNibbles(format)) / 2;
|
||||
}
|
||||
|
||||
u32 TexDecoder_GetSafeTextureHash(const u8 *src, int width, int height, int texformat)
|
||||
|
Loading…
Reference in New Issue
Block a user