From 10c72d4272e0ed0cc0487b683b52091aa474ece3 Mon Sep 17 00:00:00 2001 From: Moses Turner Date: Tue, 14 Jun 2022 13:59:19 +0100 Subject: [PATCH] c/main: Explain why we force the blit texture to be evenly-sized (NFC) --- src/xrt/compositor/main/comp_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c index fddcecb17..4d7bff968 100644 --- a/src/xrt/compositor/main/comp_renderer.c +++ b/src/xrt/compositor/main/comp_renderer.c @@ -578,7 +578,7 @@ renderer_create(struct comp_renderer *r, struct comp_compositor *c) r->mirror_to_debug_gui.image_extent.height = (uint32_t)target_height; - // gui_window_record expects the images to have even widths/heights + // We want the images to have even widths/heights so that libx264 can encode them properly; no other reason. if (r->mirror_to_debug_gui.image_extent.width % 2 == 1) { r->mirror_to_debug_gui.image_extent.width += 1; }