From 6bf2796aba170338523f8ddb2136aa043a15beca Mon Sep 17 00:00:00 2001 From: GamesTrap Date: Wed, 6 Nov 2024 00:50:18 +0100 Subject: [PATCH] Fixed Clang compiler error 11/06/2024 | 24w45a2 --- TRAP/src/Graphics/API/Vulkan/VulkanRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TRAP/src/Graphics/API/Vulkan/VulkanRenderer.cpp b/TRAP/src/Graphics/API/Vulkan/VulkanRenderer.cpp index a719546fc..8e45a546b 100644 --- a/TRAP/src/Graphics/API/Vulkan/VulkanRenderer.cpp +++ b/TRAP/src/Graphics/API/Vulkan/VulkanRenderer.cpp @@ -753,8 +753,8 @@ void TRAP::Graphics::API::VulkanRenderer::EndGraphicRecording(PerViewportData& p //End Recording p.GraphicCommandBuffers[p.ImageIndex]->End(); - TRAP::Optional reflexPresentID{}; #ifndef TRAP_HEADLESS_MODE + TRAP::Optional reflexPresentID{}; const VulkanSwapChain* const vkSwapChain = dynamic_cast(p.SwapChain.get()); if (p.ReflexLatencyMode != NVIDIAReflexLatencyMode::Disabled) reflexPresentID = vkSwapChain->GetPresentCount();