From 4d6464912e44db58d85caa06aeec0de40ffc7295 Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Fri, 17 Oct 2025 16:06:39 +0200 Subject: [PATCH] c/compositor: change idle clear color to black OLED hmds dont appreciate being driven to white for long periods Signed-off-by: Carl Philipp Klemm Part-of: --- src/xrt/compositor/shaders/clear.comp | 2 +- src/xrt/compositor/util/comp_render_gfx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/compositor/shaders/clear.comp b/src/xrt/compositor/shaders/clear.comp index 036da401a..1f0e732b8 100644 --- a/src/xrt/compositor/shaders/clear.comp +++ b/src/xrt/compositor/shaders/clear.comp @@ -33,7 +33,7 @@ void main() return; } - vec4 colour = vec4(from_linear_to_srgb(vec3(0.1)), 1.0); + vec4 colour = vec4(0, 0, 0, 1.0); imageStore(target, ivec2(offset.x + ix, offset.y + iy), colour); } diff --git a/src/xrt/compositor/util/comp_render_gfx.c b/src/xrt/compositor/util/comp_render_gfx.c index 8e1a25aab..63537c927 100644 --- a/src/xrt/compositor/util/comp_render_gfx.c +++ b/src/xrt/compositor/util/comp_render_gfx.c @@ -113,7 +113,7 @@ struct gfx_mesh_data */ static const VkClearColorValue background_color_idle = { - .float32 = {0.1f, 0.1f, 0.1f, 1.0f}, + .float32 = {0.0f, 0.0f, 0.0f, 1.0f}, }; static const VkClearColorValue background_color_active = {