]> git.mxchange.org Git - flightgear.git/blobdiff - utils/fgpanel/panel.cxx
Use future-proof SGPath APIs.
[flightgear.git] / utils / fgpanel / panel.cxx
index 45620d22a2a4f6d91b33493036ec46aa855fb043..22d225038437157ddf5564f1bcf7d76ebede287c 100644 (file)
@@ -117,8 +117,8 @@ void FGCroppedTexture::bind( bool doGLBind )
         loader = textureLoader[extension];
       }
 
-      _texture = loader->loadTexture( tpath.c_str() );
-      SG_LOG( SG_COCKPIT, SG_DEBUG, "Texture " << tpath.c_str() << " loaded from file as #" << _texture );
+      _texture = loader->loadTexture( tpath.local8BitStr() );
+      SG_LOG( SG_COCKPIT, SG_DEBUG, "Texture " << tpath << " loaded from file as #" << _texture );
       
       cache[_path] = _texture;
     }