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

@ -87,13 +87,13 @@ void RenderingServerDefault::_draw(bool p_swap_buffers, double frame_step) {
RSG::rasterizer->end_frame(p_swap_buffers);
#ifndef _3D_DISABLED
#ifndef XR_DISABLED
XRServer *xr_server = XRServer::get_singleton();
if (xr_server != nullptr) {
// let our XR server know we're done so we can get our frame timing
xr_server->end_frame();
}
#endif // _3D_DISABLED
#endif // XR_DISABLED
RSG::canvas->update_visibility_notifiers();
RSG::scene->update_visibility_notifiers();