Tweak Voodoo swap pending code. Fixes hang in Carmageddon 3DFX version.
This commit is contained in:
parent
5e35e48ec7
commit
5ef5fc1f98
1 changed files with 1 additions and 1 deletions
|
|
@ -4307,7 +4307,7 @@ static void wait_for_swap_complete(voodoo_t *voodoo)
|
||||||
{
|
{
|
||||||
thread_wait_event(voodoo->wake_fifo_thread, -1);
|
thread_wait_event(voodoo->wake_fifo_thread, -1);
|
||||||
thread_reset_event(voodoo->wake_fifo_thread);
|
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*/
|
/*Main thread is waiting for FIFO to empty, so skip vsync wait and just swap*/
|
||||||
memset(voodoo->dirty_line, 1, 1024);
|
memset(voodoo->dirty_line, 1, 1024);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue