From ca06c16eeb81e7c2ae27893dbc62ab722256d5a4 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 17 Jan 2020 22:02:21 +0000 Subject: [PATCH] st/gui: Better conversion sinks --- src/xrt/state_trackers/gui/gui_scene_calibrate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/xrt/state_trackers/gui/gui_scene_calibrate.c b/src/xrt/state_trackers/gui/gui_scene_calibrate.c index bb53f7528..e19015264 100644 --- a/src/xrt/state_trackers/gui/gui_scene_calibrate.c +++ b/src/xrt/state_trackers/gui/gui_scene_calibrate.c @@ -237,16 +237,15 @@ scene_render_select(struct gui_scene *scene, struct gui_program *p) p->texs[p->num_texs++] = gui_ogl_sink_create("Calibration", cs->xfctx, &rgb); - u_sink_create_format_converter(cs->xfctx, XRT_FORMAT_R8G8B8, rgb, &rgb); + u_sink_create_to_r8g8b8_or_l8(cs->xfctx, rgb, &rgb); u_sink_queue_create(cs->xfctx, rgb, &rgb); p->texs[p->num_texs++] = gui_ogl_sink_create("Raw", cs->xfctx, &raw); - u_sink_create_format_converter(cs->xfctx, XRT_FORMAT_R8G8B8, raw, &raw); + u_sink_create_to_r8g8b8_or_l8(cs->xfctx, raw, &raw); u_sink_queue_create(cs->xfctx, raw, &raw); t_calibration_stereo_create(cs->xfctx, &cs->params, &cs->status, rgb, &cali); - u_sink_create_to_yuv_or_yuyv(cs->xfctx, cali, &cali); u_sink_queue_create(cs->xfctx, cali, &cali); u_sink_split_create(cs->xfctx, raw, cali, &cali);