From c8b040b360b66e5cdde6f299623571e412fe1a4e Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 11 Aug 2019 07:02:38 +0000 Subject: [PATCH] Fix obscure compile bug. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5509 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/vk/vk_init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/vk/vk_init.c b/engine/vk/vk_init.c index 1f236085..362d41b5 100644 --- a/engine/vk/vk_init.c +++ b/engine/vk/vk_init.c @@ -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