summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-07-03 11:48:22 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-07-03 10:15:47 +0000
commit83cff579d188b60ab5e81e6a4e1de449ac6bc387 (patch)
tree77ebd36df01f660e54cc6c43314d2292ef1c7589 /src
parent513b4fbcabfb6c8e67c09c99ab0f1b7f7753a50e (diff)
Match the DDS/PKM file extension case-insensitively
... or you won't be able to load a file called "FOO.DDS". Task-number: QTBUG-61760 Change-Id: Id46163f62e20e37a844fa60e0be6be2881280a2c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/render/texture/qtexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/texture/qtexture.cpp b/src/render/texture/qtexture.cpp
index 77bc8ca42..20e046ebc 100644
--- a/src/render/texture/qtexture.cpp
+++ b/src/render/texture/qtexture.cpp
@@ -426,7 +426,7 @@ enum CompressedFormatExtension {
CompressedFormatExtension texturedCompressedFormat(const QString &source)
{
- const QString suffix = QFileInfo(source).suffix();
+ const QString suffix = QFileInfo(source).suffix().toLower();
if (suffix == QStringLiteral("pkm"))
return PKM;
if (suffix == QStringLiteral("dds"))