X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWeather%2Fweather.hxx;h=c8728e85494af9a296ca80128fc015799b925884;hb=f0e6716953604730579a5e45f785fd063737dce4;hp=03e5714f28e1819b0b8cbdf7ac72f235d8f47a88;hpb=182fd42b4017fa54d680508c092ea1b216398a00;p=flightgear.git diff --git a/src/Weather/weather.hxx b/src/Weather/weather.hxx index 03e5714f2..c8728e854 100644 --- a/src/Weather/weather.hxx +++ b/src/Weather/weather.hxx @@ -27,7 +27,7 @@ #include -#include +#include #ifdef SG_HAVE_STD_INCLUDES # include @@ -55,7 +55,7 @@ public: inline double get_visibility() const { return visibility; } inline void set_visibility( double v ) { - xglMatrixMode(GL_MODELVIEW); + glMatrixMode(GL_MODELVIEW); // in meters visibility = v; @@ -66,8 +66,8 @@ public: fog_exp2_density = sqrt( -log(0.01) ) / visibility; // Set correct opengl fog density - xglFogf (GL_FOG_DENSITY, fog_exp2_density); - xglFogi( GL_FOG_MODE, GL_EXP2 ); + glFogf (GL_FOG_DENSITY, fog_exp2_density); + glFogi( GL_FOG_MODE, GL_EXP2 ); // SG_LOG( SG_INPUT, SG_DEBUG, "Fog density = " << fog_density ); // SG_LOG( SG_INPUT, SG_INFO,