16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 22:59:18 +02:00

allow uppercase in generated textures specification

This commit is contained in:
milek7
2022-04-01 19:30:21 +02:00
parent fba7d98f2d
commit d0255f8871
2 changed files with 3 additions and 2 deletions

View File

@@ -1292,6 +1292,7 @@ texture_manager::create( std::string Filename, bool const Loadnow, GLint Formath
erase_extension( Filename );
// clean up slashes
erase_leading_slashes( Filename );
Filename = ToLower( Filename );
// temporary code for legacy assets -- textures with names beginning with # are to be sharpened
if( ( starts_with( Filename, "#" ) )
|| ( contains( Filename, "/#" ) ) ) {