diff --git a/client/hardware.cpp b/client/hardware.cpp index b1c5be8d..1a6e4133 100644 --- a/client/hardware.cpp +++ b/client/hardware.cpp @@ -275,7 +275,7 @@ static XrViewConfigurationView scale_view(XrViewConfigurationView view, uint32_t return view; } -XrViewConfigurationView hmd_traits_t::override_view_for_hmd(XrViewConfigurationView view) const +XrViewConfigurationView hmd_traits_t::override_view(XrViewConfigurationView view) const { // Standalone headsets tend to report a lower resolution // as the GPU can't handle full res. diff --git a/client/hardware.h b/client/hardware.h index c5af2547..f1c008eb 100644 --- a/client/hardware.h +++ b/client/hardware.h @@ -52,7 +52,7 @@ extern const struct hmd_traits_t bool hand_interaction_grip_surface = true; bool pico_face_tracker = false; - XrViewConfigurationView override_view_for_hmd(XrViewConfigurationView) const; + XrViewConfigurationView override_view(XrViewConfigurationView) const; } hmd_traits; std::string model_name(); diff --git a/client/scenes/lobby.cpp b/client/scenes/lobby.cpp index 1e8a774a..89edcd7f 100644 --- a/client/scenes/lobby.cpp +++ b/client/scenes/lobby.cpp @@ -1114,7 +1114,7 @@ void scenes::lobby::on_focused() auto views = system.view_configuration_views(viewconfig); assert(views.size() == 2); // FIXME - stream_view = hmd_traits.override_view_for_hmd(views[0]); + stream_view = hmd_traits.override_view(views[0]); width = views[0].recommendedImageRectWidth; height = views[0].recommendedImageRectHeight; diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index b64def5d..89cb7c5f 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -217,7 +217,7 @@ std::shared_ptr scenes::stream::create(std::unique_ptrsystem.view_configuration_views(self->viewconfig)[0]; - view = hmd_traits.override_view_for_hmd(view); + view = hmd_traits.override_view(view); info.render_eye_width = view.recommendedImageRectWidth * config.resolution_scale; info.render_eye_height = view.recommendedImageRectHeight * config.resolution_scale;