core, fix for vdp save/load regression

This commit is contained in:
kub 2022-01-04 17:49:24 +01:00
parent 92f7a430ca
commit 6488bec805

View file

@ -1157,10 +1157,10 @@ void PicoVideoLoad(void)
}
// make an entry in the FIFO if there are outstanding transfers
vf->fifo_ql = vf->fifo_qx = vf->fifo_total = 0;
vf->fifo_cnt = pv->fifo_cnt;
if (pv->fifo_cnt) {
int wc = (pv->fifo_cnt + b) >> b;
pv->status |= PVS_FIFORUN|PVS_CPUWR;
vf->fifo_cnt = pv->fifo_cnt;
if (!(pv->status & PVS_DMABG))
vf->fifo_total = wc;
if ((pv->status & SR_DMA) && !(pv->status & PVS_DMAFILL))