mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-20 18:52:31 +00:00
Fix obscure compile bug.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5509 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
e7726fe42f
commit
c8b040b360
1 changed files with 3 additions and 1 deletions
|
@ -3231,7 +3231,8 @@ qboolean VK_SCR_GrabBackBuffer(void)
|
|||
{ //we're still waiting for the render thread to increment acquirelast.
|
||||
//shouldn't really happen, but can if the gpu is slow.
|
||||
if (vk.neednewswapchain)
|
||||
{ //the render thread is is likely to have died... don't loop until infinity.
|
||||
{ //the render thread is is likely to have died... don't loop until infinity.
|
||||
#ifdef MULTITHREAD
|
||||
if (vk.submitthread)
|
||||
{
|
||||
//signal its condition, in case its sleeping, so we don't wait for infinity
|
||||
|
@ -3243,6 +3244,7 @@ qboolean VK_SCR_GrabBackBuffer(void)
|
|||
Sys_WaitOnThread(vk.submitthread);
|
||||
vk.submitthread = NULL;
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
Sys_Sleep(0); //o.O
|
||||
|
|
Loading…
Reference in a new issue