mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Disable XR server when compiling without 3D
This commit is contained in:
parent
6ba0179682
commit
9e0b38ecd3
10 changed files with 98 additions and 52 deletions
|
@ -93,11 +93,13 @@ void RenderingServerDefault::_draw(bool p_swap_buffers, double frame_step) {
|
|||
|
||||
RSG::rasterizer->end_frame(p_swap_buffers);
|
||||
|
||||
#ifndef _3D_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
|
||||
|
||||
RSG::canvas->update_visibility_notifiers();
|
||||
RSG::scene->update_visibility_notifiers();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue