Initialise output window semaphore to VK_NULL_HANDLE

In case CreateSemaphore() fails and the semaphore is not valid which could lead to a problem/crash in DestroySemaphore
This commit is contained in:
Jake Turner
2025-07-10 07:52:38 +01:00
parent eede382884
commit 5f2d07f921
+1 -1
View File
@@ -943,7 +943,7 @@ void VulkanReplay::BindOutputWindow(uint64_t id, bool depth)
{
// semaphore is short lived, so not wrapped, if it's cached (ideally)
// then it should be wrapped
VkSemaphore sem;
VkSemaphore sem = VK_NULL_HANDLE;
VkPipelineStageFlags stage = VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT;
VkSemaphoreCreateInfo semInfo = {VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO, NULL, 0};