From cfc773b1b2a52104f497e665aaa04e98cdd941e6 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Sun, 29 Oct 2023 14:36:33 +0100 Subject: [PATCH] Fix silly segfault in low latency mode. --- vulkan/wsi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkan/wsi.cpp b/vulkan/wsi.cpp index 43ad1a19..4c3c58a8 100644 --- a/vulkan/wsi.cpp +++ b/vulkan/wsi.cpp @@ -526,7 +526,7 @@ bool WSI::begin_frame() fence ? fence->get_fence() : VK_NULL_HANDLE, &swapchain_index); device->register_time_interval("WSI", std::move(acquire_ts), device->write_calibrated_timestamp(), "acquire"); - if (low_latency_mode_enable) + if (fence) fence->wait(); #if defined(ANDROID)