From baced12633ebe5eaa5bfa9508b8f981546a7b99e Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Tue, 19 Nov 2013 14:56:21 -0500 Subject: [PATCH] Add tga filename detection. --- IO/src/ImageFile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IO/src/ImageFile.cpp b/IO/src/ImageFile.cpp index 6b62043..5199cba 100644 --- a/IO/src/ImageFile.cpp +++ b/IO/src/ImageFile.cpp @@ -262,6 +262,9 @@ EImageFileFormat ImageFile::DetectFileFormat(const CHAR *filename) { else if(strcmp(ext, ".pvr") == 0) { return eFileFormat_PVR; } + else if(strcmp(ext, ".tga") == 0) { + return eFileFormat_TGA; + } return kNumImageFileFormats; }