]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/viewer.cxx
version.h support in CMake builds.
[flightgear.git] / src / Main / viewer.cxx
index d7b51d859cbf3bbdc7d709d7772fd7201bf9a4f3..05816f8bc6c407434dfef501a1b519dbf835d854 100644 (file)
@@ -28,6 +28,7 @@
 #endif
 
 #include <simgear/compiler.h>
+#include <cassert>
 
 #include "fg_props.hxx"
 
@@ -650,6 +651,8 @@ FGViewer::update (double dt)
     }
   }
   recalc();
-  _cameraGroup->update(toOsg(_absolute_view_pos), toOsg(mViewOrientation));
-  _cameraGroup->setCameraParameters(get_v_fov(), get_aspect_ratio());
+  if( fgGetBool( "/sim/rendering/draw-otw", true ) ) {
+    _cameraGroup->update(toOsg(_absolute_view_pos), toOsg(mViewOrientation));
+    _cameraGroup->setCameraParameters(get_v_fov(), get_aspect_ratio());
+  }
 }