Fix incorrect resolution show in stream settings

This commit is contained in:
Patrick Nicolas
2026-11-11 12:00:26 +01:00
parent 869b0ce660
commit 7f9957ae79
9 changed files with 29 additions and 34 deletions
+4 -9
View File
@@ -144,6 +144,10 @@ void scenes::lobby::move_gui(glm::vec3 head_position, glm::vec3 new_gui_position
scenes::lobby::lobby() :
scene_impl<lobby>(supported_color_formats, supported_depth_formats)
{
const auto & view = system.stereo_view();
width = view.recommendedImageRectWidth;
height = view.recommendedImageRectHeight;
spdlog::info("Using formats {} and {}", vk::to_string(swapchain_format), vk::to_string(depth_format));
if (composition_layer_depth_test_supported)
@@ -1140,15 +1144,6 @@ void scenes::lobby::on_focused()
{
recenter_gui = true;
auto views = system.view_configuration_views(viewconfig);
assert(views.size() == 2); // FIXME
stream_view = application::get_hmd_traits().override_view(views[0]);
width = views[0].recommendedImageRectWidth;
height = views[0].recommendedImageRectHeight;
// assert(std::ranges::all_of(views, [width](const XrViewConfigurationView & view) { return view.recommendedImageRectWidth == width; }));
// assert(std::ranges::all_of(views, [height](const XrViewConfigurationView & view) { return view.recommendedImageRectHeight == height; }));
auto & config = application::get_config();
try