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:
Spoike 2019-08-11 07:02:38 +00:00
parent e7726fe42f
commit c8b040b360

View file

@ -3232,6 +3232,7 @@ qboolean VK_SCR_GrabBackBuffer(void)
//shouldn't really happen, but can if the gpu is slow. //shouldn't really happen, but can if the gpu is slow.
if (vk.neednewswapchain) 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) if (vk.submitthread)
{ {
//signal its condition, in case its sleeping, so we don't wait for infinity //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); Sys_WaitOnThread(vk.submitthread);
vk.submitthread = NULL; vk.submitthread = NULL;
} }
#endif
return false; return false;
} }
Sys_Sleep(0); //o.O Sys_Sleep(0); //o.O