]> git.mxchange.org Git - flightgear.git/commitdiff
Save a costly SGVec3d::fromGeod() calculation
authorehofman <ehofman>
Thu, 5 Nov 2009 13:46:49 +0000 (13:46 +0000)
committerTim Moore <timoore@redhat.com>
Sat, 7 Nov 2009 07:54:03 +0000 (08:54 +0100)
src/Main/renderer.cxx

index 74cf55fb0651f649cf32bcccda294f7b07f4a5f3..bafc5d488a2999f6be8cb83ef65cecdc31f10037 100644 (file)
@@ -611,7 +611,8 @@ FGRenderer::update( bool refresh_camera_settings ) {
         }
 
         SGSkyState sstate;
-        sstate.pos       = current__view->getPosition();
+        sstate.pos       = current__view->getViewPosition();
+        sstate.pos_geod  = current__view->getPosition();
         sstate.ori       = current__view->getViewOrientation();
         sstate.spin      = l->get_sun_rotation();
         sstate.gst       = globals->get_time_params()->getGst();