Voodoo 1/2: Always reset 'swaps_pending' counter when switching to Voodoo mode.

This fixes a possible deadlock in accelerated Direct3D test.
This commit is contained in:
Volker Ruppert 2021-07-18 07:25:08 +00:00
parent a216fc71a3
commit 6b08329fa2
1 changed files with 1 additions and 0 deletions

View File

@ -1063,6 +1063,7 @@ bool bx_voodoo_1_2_c::update_timing(void)
vertical_timer_handler(this);
}
BX_INFO(("Voodoo output %dx%d@%uHz", v->fbi.width, v->fbi.height, (unsigned)v->vertfreq));
v->fbi.swaps_pending = 0;
v->vtimer_running = 1;
bx_virt_timer.activate_timer(s.vertical_timer_id, (Bit32u)s.vdraw.vtotal_usec, 1);
return 1;