From 0f239b07bc06bf26d0ee0f9c1ee1e3b636f6d1f6 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 16 Sep 2016 11:23:37 +0300 Subject: [PATCH] Make offset_axis a local variable of StereoView::setup_frame It's not used anywhere else --- source/stereoview.cpp | 2 +- source/stereoview.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/stereoview.cpp b/source/stereoview.cpp index 5b8dbbb..efc54dd 100644 --- a/source/stereoview.cpp +++ b/source/stereoview.cpp @@ -41,7 +41,7 @@ void StereoView::set_strabismus(const Geometry::Angle &s) void StereoView::setup_frame() const { - offset_axis = normalize(cross(base_camera.get_look_direction(), base_camera.get_up_direction()))*0.5f; + GL::Vector3 offset_axis = normalize(cross(base_camera.get_look_direction(), base_camera.get_up_direction()))*0.5f; EyeParams params; params.fov = combiner->get_field_of_view(); diff --git a/source/stereoview.h b/source/stereoview.h index 842636e..f9e9a56 100644 --- a/source/stereoview.h +++ b/source/stereoview.h @@ -54,7 +54,6 @@ private: Eye right; float eye_spacing; Geometry::Angle strabismus; - mutable GL::Vector3 offset_axis; public: StereoView(unsigned, unsigned, const GL::Camera &, const GL::Renderable &, const StereoCombiner &); -- 2.45.2