Skip to content

Commit

Permalink
Fix silly segfault in low latency mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Oct 29, 2023
1 parent 420fd45 commit cfc773b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulkan/wsi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cfc773b

Please sign in to comment.