Skip to content

Commit

Permalink
Fix silly crash when fence is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Oct 26, 2023
1 parent d50cd4d commit 300dfb9
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 @@ -519,7 +519,7 @@ bool WSI::begin_frame()

auto acquire_ts = device->write_calibrated_timestamp();
result = table->vkAcquireNextImageKHR(context->get_device(), swapchain, UINT64_MAX, acquire->get_semaphore(),
fence->get_fence(), &swapchain_index);
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)
Expand Down

0 comments on commit 300dfb9

Please sign in to comment.