X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObjects%2Fnewmat.cxx;h=7ac493dea296160ad40c82a552f0bcf1c32ceb1d;hb=b4a9d7621597c9eef97f8ec84d246d5585b4b7ea;hp=aad28e558b1c40a5dfd257f78a78f87126df4bdb;hpb=35056ddaea7aa3302e1a2b9b3bb894b191c85aba;p=flightgear.git diff --git a/src/Objects/newmat.cxx b/src/Objects/newmat.cxx index aad28e558..7ac493dea 100644 --- a/src/Objects/newmat.cxx +++ b/src/Objects/newmat.cxx @@ -172,11 +172,7 @@ FGNewMat::load_texture () return false; } else { SG_LOG( SG_GENERAL, SG_INFO, "Loading deferred texture " << texture_path ); -#ifdef PLIB_1_2_X - textured->setTexture((char *)texture_path.c_str(), wrapu, wrapv ); -#else textured->setTexture((char *)texture_path.c_str(), wrapu, wrapv, mipmap ); -#endif texture_loaded = true; return true; } @@ -206,6 +202,15 @@ FGNewMat::build_ssg_state (bool defer_tex_load) textured->enable( GL_TEXTURE_2D ); textured->disable( GL_BLEND ); textured->disable( GL_ALPHA_TEST ); +#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 if ( !defer_tex_load ) { textured->setTexture( (char *)texture_path.c_str(), wrapu, wrapv ); texture_loaded = true;