From 4fc8d3dbea84963636602e9b5bb09b6b8aa5d9eb Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 28 Apr 2020 10:46:52 -0500 Subject: [PATCH] st/gui: Fix build without OpenCV --- src/xrt/state_trackers/gui/gui_scene_calibrate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/state_trackers/gui/gui_scene_calibrate.c b/src/xrt/state_trackers/gui/gui_scene_calibrate.c index edeeccb5f..ab1fd8084 100644 --- a/src/xrt/state_trackers/gui/gui_scene_calibrate.c +++ b/src/xrt/state_trackers/gui/gui_scene_calibrate.c @@ -391,10 +391,10 @@ scene_destroy(struct gui_scene *scene, struct gui_program *p) free(cs->settings); cs->settings = NULL; } - +#ifdef XRT_HAVE_OPENCV // Free data, no longer needed. t_stereo_camera_calibration_reference(&cs->status.stereo_data, NULL); - +#endif free(cs); }