]> git.mxchange.org Git - flightgear.git/commitdiff
Unconvoluted around line #130
authorcurt <curt>
Wed, 11 Apr 2001 20:09:23 +0000 (20:09 +0000)
committercurt <curt>
Wed, 11 Apr 2001 20:09:23 +0000 (20:09 +0000)
src/Objects/matlib.cxx

index 25535f8f42eceee120417ef538612917065df1d0..60fa40ea5b2205544a423bbfee99cd669adff15f 100644 (file)
@@ -129,10 +129,8 @@ bool FGMaterialLib::load( const string& mpath ) {
                in >> m;
 
                // build the ssgSimpleState
-               SGPath tmp_path( globals->get_fg_root() );
-               tmp_path.append( "Textures.high" );
-
-               SGPath tex_path = tmp_path;
+               SGPath tex_path( globals->get_fg_root() );
+               tex_path.append( "Textures.high" );
                tex_path.append( m.get_texture_name() );
                if ( ! local_file_exists(tex_path.str())
                     || general.get_glMaxTexSize() < 512 ) {