mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(SoftFilters) Fixes crashes with HQ2x - note - HQ2x is very slow due to YUV table
This commit is contained in:
parent
aa3cdb4e05
commit
37c8ea816c
@ -148,6 +148,8 @@ static inline uint8_t same(uint16_t x, uint16_t y)
|
||||
|
||||
static inline uint8_t diff(uint32_t x, uint16_t y)
|
||||
{
|
||||
if (y < 32768)
|
||||
return 0;
|
||||
return ((x - yuvTable[y]) & DIFF_MASK);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user