You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Disable XR server when compiling without 3D
This commit is contained in:
@@ -49,9 +49,11 @@ bool RendererCompositor::is_xr_enabled() const {
|
||||
RendererCompositor::RendererCompositor() {
|
||||
singleton = this;
|
||||
|
||||
#ifndef _3D_DISABLED
|
||||
if (XRServer::get_xr_mode() == XRServer::XRMODE_DEFAULT) {
|
||||
xr_enabled = GLOBAL_GET("xr/shaders/enabled");
|
||||
} else {
|
||||
xr_enabled = XRServer::get_xr_mode() == XRServer::XRMODE_ON;
|
||||
}
|
||||
#endif // _3D_DISABLED
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user