@@ -217,12 +217,23 @@ bool LunarWM_init(LunarWM *wm)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!LunarWM_xr_init(wm)) {
|
||||
wlr_log(WLR_ERROR, "Failed to initialize OpenXR! Disabling XR...");
|
||||
wm->xr.available = false;
|
||||
LunarWM_xr_cleanup(wm);
|
||||
} else {
|
||||
wm->xr.available = true;
|
||||
wm->xr.available = false;
|
||||
{
|
||||
char *no_xr = getenv("LWM_NO_XR");
|
||||
bool xr = true;
|
||||
|
||||
if (no_xr != NULL && no_xr[0] != '\0')
|
||||
xr = false;
|
||||
|
||||
if (xr) {
|
||||
if (!LunarWM_xr_init(wm)) {
|
||||
wlr_log(
|
||||
WLR_ERROR, "Failed to initialize OpenXR! Disabling XR...");
|
||||
LunarWM_xr_cleanup(wm);
|
||||
} else {
|
||||
wm->xr.available = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
wlr_log(WLR_INFO, "OpenGL ES version: %s", glGetString(GL_VERSION));
|
||||
|
||||
Reference in New Issue
Block a user