core, fix for vdp save/load regression
authorkub <derkub@gmail.com>
Fri, 7 Jan 2022 06:32:37 +0000 (07:32 +0100)
committerkub <derkub@gmail.com>
Fri, 7 Jan 2022 06:32:37 +0000 (07:32 +0100)
pico/videoport.c

index 8269d89..1ecb311 100644 (file)
@@ -1165,7 +1165,7 @@ void PicoVideoLoad(void)
   }\r
 \r
   // fake entries in the FIFO if there are outstanding transfers\r
-  vf->fifo_ql = vf->fifo_qx = vf->fifo_total = 0;\r
+  vf->fifo_ql = vf->fifo_qx = vf->fifo_cnt = vf->fifo_total = 0;\r
   if (pv->fifo_cnt) {\r
     int wc = (pv->fifo_cnt + b) >> b;\r
     pv->status |= PVS_FIFORUN|PVS_CPUWR;\r