From 02896643d704bc2eef64ad56b256c8f58b29271f Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 23 May 2001 20:54:51 +0000 Subject: [PATCH] Minor texture tweaks. --- src/Main/main.cxx | 18 ++++++++++++++++++ src/Objects/matlib.cxx | 2 +- src/Objects/obj.cxx | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 81dd78176..f11a01b60 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -53,6 +53,10 @@ # include // for stat() #endif +#ifdef HAVE_LIBX11 +# include +#endif + #include #include @@ -1450,6 +1454,20 @@ int main( int argc, char **argv ) { // fonts !!! guiInit(); +#ifdef GL_EXT_texture_lod_bias + glTexEnvf( GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, -0.5 ) ; +#endif + +#if 0 +#ifdef GL_EXT_texture_filter_anisotropic + float max_anisotropy; + glGetFloatv( GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &max_anisotropy ); + glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, + max_anisotropy ); + cout << "Max anisotropy = " << max_anisotropy << endl; +#endif +#endif + // set current_options lon/lat if an airport id is specified // cout << "3. airport_id = " << fgGetString("/sim/startup/airport-id") << endl; if ( fgGetString("/sim/startup/airport-id").length() ) { diff --git a/src/Objects/matlib.cxx b/src/Objects/matlib.cxx index 4fcc1bd5d..ac2be6b94 100644 --- a/src/Objects/matlib.cxx +++ b/src/Objects/matlib.cxx @@ -292,7 +292,7 @@ void FGMaterialLib::load_next_deferred() { setTexture( (char *)slot.get_texture_name_c_str(), 0, 0 ); #else slot.get_textured()-> - setTexture( (char *)slot.get_texture_name_c_str(), 0, 0, 0 ); + setTexture( (char *)slot.get_texture_name_c_str(), 0, 0, 1 ); #endif slot.set_texture_loaded( true ); } diff --git a/src/Objects/obj.cxx b/src/Objects/obj.cxx index 1f792db11..afd8107ab 100644 --- a/src/Objects/obj.cxx +++ b/src/Objects/obj.cxx @@ -903,7 +903,7 @@ static ssgLeaf *gen_leaf( const string& path, // Load an Binary obj file ssgBranch *fgBinObjLoad( const string& path, FGTileEntry *t, - ssgVertexArray *lights, const bool is_base) + ssgVertexArray *lights, const bool is_base) { int i; -- 2.39.5