mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 11:09:19 +02:00
Merge branch 'tmj-dev' into milek-dev
This commit is contained in:
@@ -818,6 +818,11 @@ texture_manager::create( std::string Filename, bool const Loadnow ) {
|
||||
|
||||
erase_extension( 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" }, { ".png" }, { ".bmp" }, { ".ext" } };
|
||||
|
||||
// try to locate requested texture in the databank
|
||||
|
||||
Reference in New Issue
Block a user