correct TexDecoder_GetTextureSizeInBytes.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1397 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
memberTwo.mb2 2008-12-04 15:51:53 +00:00
parent a54e7ba3ad
commit aa05c2173e

View file

@ -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)