mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-13 09:39:20 +01:00
TextureDecoder: Fix off-by-one errors in CMPR
This commit is contained in:
1 parent
0b6e5765dd
commit
5d4e4aa561
4 files changed
+61
-61
No files matched your search
@@ -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