The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

st/gui: Fix crash if no instance have been created

+5 -2
+5 -2
src/xrt/state_trackers/gui/gui_scene_debug.c
··· 480 480 void 481 481 gui_scene_debug(struct gui_program *p) 482 482 { 483 - struct debug_scene *ds = U_TYPED_CALLOC(struct debug_scene); 483 + // Only create devices if we have a instance and no system devices. 484 + if (p->instance != NULL && p->xsysd == NULL) { 485 + gui_prober_select(p); 486 + } 484 487 485 - gui_prober_select(p); 488 + struct debug_scene *ds = U_TYPED_CALLOC(struct debug_scene); 486 489 487 490 ds->base.render = scene_render; 488 491 ds->base.destroy = scene_destroy;