Tweak Voodoo swap pending code. Fixes hang in Carmageddon 3DFX version.

This commit is contained in:
SarahW 2019-05-05 17:08:17 +01:00
commit 5ef5fc1f98

View file

@ -4307,7 +4307,7 @@ static void wait_for_swap_complete(voodoo_t *voodoo)
{
thread_wait_event(voodoo->wake_fifo_thread, -1);
thread_reset_event(voodoo->wake_fifo_thread);
if ((voodoo->swap_pending && voodoo->flush) || FIFO_ENTRIES >= 65536)
if ((voodoo->swap_pending && voodoo->flush) || FIFO_FULL)
{
/*Main thread is waiting for FIFO to empty, so skip vsync wait and just swap*/
memset(voodoo->dirty_line, 1, 1024);