···578578 r->mirror_to_debug_gui.image_extent.height = (uint32_t)target_height;
579579580580581581- // gui_window_record expects the images to have even widths/heights
581581+ // We want the images to have even widths/heights so that libx264 can encode them properly; no other reason.
582582 if (r->mirror_to_debug_gui.image_extent.width % 2 == 1) {
583583 r->mirror_to_debug_gui.image_extent.width += 1;
584584 }