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).
This commit is contained in:
parent
6ce68a226a
commit
d84043fbe2
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue