From: mfranz Date: Mon, 7 Aug 2006 15:11:46 +0000 (+0000) Subject: move GL_TEXTURE_LOD_BIAS_EXT one section up and document what it does X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d84043fbe28142bb572aed4595180fa74fab014b;p=flightgear.git move GL_TEXTURE_LOD_BIAS_EXT one section up and document what it does (this was the reason why the first two text lines on the splash screen looked more blurry than the others). BTW: I played with other values than -0.5, but this turned out to be the best already. It makes textures sharper than 0, but not too sharp (and thus flickering). --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 74e30dff8..c9e7f3f81 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -617,6 +617,11 @@ static void fgMainLoop( void ) { static void fgIdleFunction ( void ) { if ( idle_state == 0 ) { idle_state++; + +#ifdef GL_EXT_texture_lod_bias + // negative values sharpen, positive values blur mipmapped textures + glTexEnvf( GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, -0.5 ) ; +#endif fgSplashProgress("setting up scenegraph & user interface"); @@ -655,10 +660,6 @@ static void fgIdleFunction ( void ) { // Read the list of available aircrafts fgReadAircraft(); -#ifdef GL_EXT_texture_lod_bias - glTexEnvf( GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, -0.5 ) ; -#endif - // get the address of our OpenGL extensions if (SGIsOpenGLExtensionSupported("GL_EXT_point_parameters") ) { glPointParameterIsSupported = true;