The open source OpenXR runtime

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 <carl@uvos.xyz>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2601>

authored by

Carl Philipp Klemm and committed by
Jakob Bornecrantz
4d646491 27d67605

+2 -2
+1 -1
src/xrt/compositor/shaders/clear.comp
··· 33 33 return; 34 34 } 35 35 36 - vec4 colour = vec4(from_linear_to_srgb(vec3(0.1)), 1.0); 36 + vec4 colour = vec4(0, 0, 0, 1.0); 37 37 38 38 imageStore(target, ivec2(offset.x + ix, offset.y + iy), colour); 39 39 }
+1 -1
src/xrt/compositor/util/comp_render_gfx.c
··· 113 113 */ 114 114 115 115 static const VkClearColorValue background_color_idle = { 116 - .float32 = {0.1f, 0.1f, 0.1f, 1.0f}, 116 + .float32 = {0.0f, 0.0f, 0.0f, 1.0f}, 117 117 }; 118 118 119 119 static const VkClearColorValue background_color_active = {