The open source OpenXR runtime
0
fork

Configure Feed

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

c/direct_mode: Print meaningful error if no display matches NVIDIA whitelist.

authored by

Lubosz Sarnecki and committed by
Jakob Bornecrantz
56a8e808 7da70568

+17
+17
src/xrt/compositor/main/comp_window_direct_mode.c
··· 359 359 break; 360 360 } 361 361 362 + if (w_direct->num_nv_displays == 0) { 363 + COMP_ERROR(w->c, 364 + "NVIDIA: No machting displays found. " 365 + "Is your headset whitelisted?"); 366 + 367 + COMP_ERROR(w->c, "== Whitelist =="); 368 + for (uint32_t i = 0; i < ARRAY_SIZE(NV_DIRECT_WHITELIST); i++) 369 + COMP_ERROR(w->c, "%s", NV_DIRECT_WHITELIST[i]); 370 + 371 + COMP_ERROR(w->c, "== Available =="); 372 + for (uint32_t i = 0; i < display_count; i++) 373 + COMP_ERROR(w->c, "%s", display_props[i].displayName); 374 + 375 + free(display_props); 376 + return false; 377 + } 378 + 362 379 free(display_props); 363 380 364 381 return true;