From 7d610b29592581d7be3404ced4b9c8c7db37aa0c Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 10 Oct 2026 12:24:56 +0200 Subject: [PATCH] Skip rendering on invalid view state --- client/scenes/lobby.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/scenes/lobby.cpp b/client/scenes/lobby.cpp index 158fa79b..f4889839 100644 --- a/client/scenes/lobby.cpp +++ b/client/scenes/lobby.cpp @@ -958,6 +958,12 @@ void scenes::lobby::render(const XrFrameState & frame_state) // assert(views.size() == swapchains_lobby.size()); assert(views.size() == 2); // FIXME + if (not(flags & XR_VIEW_STATE_POSITION_VALID_BIT and flags & XR_VIEW_STATE_ORIENTATION_VALID_BIT)) + { + spdlog::warn("Invalid view state, skip frame"); + return; + } + bool hide_left_controller = false; bool hide_right_controller = false;