From: ehofman Date: Thu, 5 Nov 2009 13:46:49 +0000 (+0000) Subject: Save a costly SGVec3d::fromGeod() calculation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fe834dedfbc85d34aa4258ee04aff08f7cb3f9b4;p=flightgear.git Save a costly SGVec3d::fromGeod() calculation --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 74cf55fb0..bafc5d488 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -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();