From: Mikko Rasa Date: Fri, 16 Sep 2016 08:23:37 +0000 (+0300) Subject: Make offset_axis a local variable of StereoView::setup_frame X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=0f239b07bc06bf26d0ee0f9c1ee1e3b636f6d1f6;p=libs%2Fvr.git Make offset_axis a local variable of StereoView::setup_frame It's not used anywhere else --- 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 &);