mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 07:38:05 -04:00
core, fix some bugs reported by ASAN
This commit is contained in:
parent
b5d8374c6a
commit
b38c0ea6f9
2 changed files with 6 additions and 7 deletions
|
@ -397,7 +397,7 @@ int PicoVideoFIFOHint(void)
|
|||
// reset slot to start of scanline
|
||||
vf->fifo_slot = 0;
|
||||
// only need to refresh sprite position if we are synced
|
||||
if (Pico.est.DrawScanline == Pico.m.scanline)
|
||||
if (Pico.est.DrawScanline == Pico.m.scanline && !(pv->status & SR_VB))
|
||||
PicoDrawRefreshSprites();
|
||||
|
||||
// if CPU is waiting for the bus, advance CPU and FIFO until bus is free
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue