mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-02-18 13:00:25 -05:00
TextureDecoder: Fix off-by-one errors in CMPR
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user