]> git.tdb.fi Git - libs/vr.git/commitdiff
Make offset_axis a local variable of StereoView::setup_frame
authorMikko Rasa <tdb@tdb.fi>
Fri, 16 Sep 2016 08:23:37 +0000 (11:23 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 16 Sep 2016 08:42:15 +0000 (11:42 +0300)
It's not used anywhere else

source/stereoview.cpp
source/stereoview.h

index 5b8dbbbbb5bab8b8a8b5f62e5c9eaf1bc15518fa..efc54dd5f3a38e9158f9e10ec4de640b32eea2e5 100644 (file)
@@ -41,7 +41,7 @@ void StereoView::set_strabismus(const Geometry::Angle<float> &s)
 
 void StereoView::setup_frame() const
 {
 
 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();
 
        EyeParams params;
        params.fov = combiner->get_field_of_view();
index 842636e6697ce780f23c39531c2d1d30dec4f19b..f9e9a560ea7eefc21b8f4081cf627267e4e601db 100644 (file)
@@ -54,7 +54,6 @@ private:
        Eye right;
        float eye_spacing;
        Geometry::Angle<float> strabismus;
        Eye right;
        float eye_spacing;
        Geometry::Angle<float> strabismus;
-       mutable GL::Vector3 offset_axis;
 
 public:
        StereoView(unsigned, unsigned, const GL::Camera &, const GL::Renderable &, const StereoCombiner &);
 
 public:
        StereoView(unsigned, unsigned, const GL::Camera &, const GL::Renderable &, const StereoCombiner &);