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();