mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2024-11-24 01:09:51 +00:00
Fix overflow that caused flickering when upscaling many games
This commit is contained in:
parent
864d0fadfd
commit
7798e1e46f
@ -1,7 +1,8 @@
|
||||
template<int BlendMode, bool MaskEval_TA, bool textured>
|
||||
INLINE void PS_GPU::PlotPixel(int32_t x, int32_t y, uint16_t fore_pix)
|
||||
{
|
||||
y &= 511; // More Y precision bits than GPU RAM installed in (non-arcade, at least) Playstation hardware.
|
||||
// More Y precision bits than GPU RAM installed in (non-arcade, at least) Playstation hardware.
|
||||
y &= (512 << UPSCALE_SHIFT) - 1;
|
||||
|
||||
if(BlendMode >= 0 && (fore_pix & 0x8000))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user