st/gui: Fix compilation issue with OpenCV

Closes #63
This commit is contained in:
Jakob Bornecrantz 2020-03-25 19:39:56 +00:00
parent 622c848fa2
commit 9ff0ee2e6a
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,6 @@
---
- issue.63
- mr.256
---
Fix compilation issue in `st/gui` when building without OpenCV.

View file

@ -57,6 +57,7 @@ struct calibration_scene
*
*/
#ifdef XRT_HAVE_OPENCV
static void
save_calibration(struct calibration_scene *cs)
{
@ -70,6 +71,7 @@ save_calibration(struct calibration_scene *cs)
// Free data, no longer needed.
t_stereo_camera_calibration_reference(&cs->status.stereo_data, NULL);
}
#endif
static void
draw_texture(struct gui_ogl_texture *tex, bool header)