Allow to compile the engine without XR support

This commit is contained in:
Michael Alexsander 2025-02-24 20:37:51 -03:00
parent cc7a951140
commit aea559b39a
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA
33 changed files with 77 additions and 57 deletions

View file

@ -272,7 +272,7 @@ JNIEXPORT jboolean JNICALL Java_org_godotengine_godot_GodotLib_step(JNIEnv *env,
if (step.get() == STEP_SHOW_LOGO) {
bool xr_enabled = false;
#ifndef _3D_DISABLED
#ifndef XR_DISABLED
// Unlike PCVR, there's no additional 2D screen onto which to render the boot logo,
// so we skip this step if xr is enabled.
if (XRServer::get_xr_mode() == XRServer::XRMODE_DEFAULT) {
@ -280,7 +280,7 @@ JNIEXPORT jboolean JNICALL Java_org_godotengine_godot_GodotLib_step(JNIEnv *env,
} else {
xr_enabled = XRServer::get_xr_mode() == XRServer::XRMODE_ON;
}
#endif // _3D_DISABLED
#endif // XR_DISABLED
if (!xr_enabled) {
Main::setup_boot_logo();
}