diff --git a/src/xrt/state_trackers/gui/gui_scene_debug.c b/src/xrt/state_trackers/gui/gui_scene_debug.c index 7eab7af21..2e12c0b89 100644 --- a/src/xrt/state_trackers/gui/gui_scene_debug.c +++ b/src/xrt/state_trackers/gui/gui_scene_debug.c @@ -396,16 +396,11 @@ on_elem_sink_debug_add(struct u_var_info *info, void *priv) { void *ptr = info->ptr; enum u_var_kind kind = info->kind; - struct gui_program *p = ((struct priv_tuple *)priv)->p; if (kind != U_VAR_KIND_SINK_DEBUG) { return; } - if (p->xp == NULL || p->xp->tracking == NULL) { - return; - } - struct u_sink_debug *usd = (struct u_sink_debug *)ptr; struct debug_scene *ds = ((struct priv_tuple *)priv)->ds; struct debug_record *dr = &ds->recs[ds->num_recrs++];