From aa05c2173efd422df78981a0ca522ee6e813878f Mon Sep 17 00:00:00 2001 From: "memberTwo.mb2" Date: Thu, 4 Dec 2008 15:51:53 +0000 Subject: [PATCH] correct TexDecoder_GetTextureSizeInBytes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1397 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/TextureDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index f094139d27..df46fabeb7 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -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)