mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
vehicle mesh load fail crash fix, material and texture loading tweaks, minor bug fixes
This commit is contained in:
@@ -762,6 +762,10 @@ texture_manager::create( std::string Filename, bool const Loadnow ) {
|
||||
|
||||
erase_extension( Filename );
|
||||
replace_slashes( Filename );
|
||||
if( Filename[ 0 ] == '/' ) {
|
||||
// filename can potentially begin with a slash, and we don't need it
|
||||
Filename.erase( 0, 1 );
|
||||
}
|
||||
|
||||
std::vector<std::string> extensions { { ".dds" }, { ".tga" }, { ".bmp" }, { ".ext" } };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user