mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-19 07:59:01 +02:00
Make NetworkTexture extension comparisons case-insensitive
This commit is contained in:
parent
697fde4a1a
commit
529869e80c
1 changed files with 3 additions and 2 deletions
|
@ -315,9 +315,10 @@ NetworkTexture::NetworkTexture(const QUrl& url, image::TextureUsage::Type type,
|
|||
_textureSource = std::make_shared<gpu::TextureSource>(url, (int)type);
|
||||
_lowestRequestedMipLevel = 0;
|
||||
|
||||
if (url.fileName().endsWith(TEXTURE_META_EXTENSION)) {
|
||||
auto fileNameLowercase = url.fileName().toLower();
|
||||
if (fileNameLowercase.endsWith(TEXTURE_META_EXTENSION)) {
|
||||
_currentlyLoadingResourceType = ResourceType::META;
|
||||
} else if (url.fileName().endsWith(".ktx")) {
|
||||
} else if (fileNameLowercase.endsWith(".ktx")) {
|
||||
_currentlyLoadingResourceType = ResourceType::KTX;
|
||||
} else {
|
||||
_currentlyLoadingResourceType = ResourceType::ORIGINAL;
|
||||
|
|
Loading…
Reference in a new issue