mirror of https://github.com/bochs-emu/Bochs
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:
parent
a216fc71a3
commit
6b08329fa2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue