From d479ae97866c8737ebdb071ad209a33d64572451 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 14 Mar 2024 18:20:59 +0100 Subject: [PATCH] Set clear color to opaque black in reprojection. Fixes black output in HTC headsets --- client/scenes/stream_reprojection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/scenes/stream_reprojection.cpp b/client/scenes/stream_reprojection.cpp index 311ad78e..b18d20de 100644 --- a/client/scenes/stream_reprojection.cpp +++ b/client/scenes/stream_reprojection.cpp @@ -420,7 +420,8 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer& command_buffer, int ubo[source]->lambda.y = foveation_parameters[source].y.a / foveation_parameters[source].y.scale; ubo[source]->xc.y = foveation_parameters[source].y.center; - vk::ClearValue clear_color; + std::array col = {0, 0, 0, 1}; + vk::ClearValue clear_color(col); vk::RenderPassBeginInfo begin_info{ .renderPass = *renderpass,