Create view failure didn't properly fall back to flatscreen
#include "../../stereokit.h"
#include "../../_stereokit.h"
+#include "../../log.h"
#include "../../asset_types/texture.h"
#include "../../systems/render.h"
#include "../../systems/input.h"
@@ -132,7 +133,8 @@ bool openxr_views_create() {
if (types[t] == xr_request_displays[r]) {
arrput(xr_display_types, types[t]);
arrput(xr_displays, device_display_t{});
- openxr_create_view(types[t], arrlast(xr_displays));
+ if (!openxr_create_view(types[t], arrlast(xr_displays)))
+ return false;
}
}
}
@@ -204,7 +206,7 @@ bool openxr_create_view(XrViewConfigurationType view_type, device_display_t &out
}
if (!openxr_update_swapchains(out_view)) {
- log_warnf("Couldn't create OpenXR view swapchains!");
+ log_fail_reason(80, "Couldn't create OpenXR view swapchains!");
return false;
}
