TextureDecoder: Fix off-by-one errors in CMPR

This commit is contained in:
hthh committed 2017-01-14 10:52:35 +11:00
1 parent 0b6e5765dd
commit 5d4e4aa561
4 files changed
+61 -61

No files matched your search

+5
View File
@@ -88,3 +88,8 @@ void TexDecoder_SetTexFmtOverlayOptions(bool enable, bool center);
/* Internal method, implemented by TextureDecoder_Generic and TextureDecoder_x64. */
void _TexDecoder_DecodeImpl(u32* dst, const u8* src, int width, int height, int texformat,
const u8* tlut, TlutFormat tlutfmt);
static constexpr int DXTBlend(int v1, int v2)
{
return ((v1 * 3 + v2 * 5) >> 3);
}