diff --git a/tools/texturec/texturec.cpp b/tools/texturec/texturec.cpp index 9038b55..091987f 100644 --- a/tools/texturec/texturec.cpp +++ b/tools/texturec/texturec.cpp @@ -772,7 +772,7 @@ int main(int _argc, const char* _argv[]) } } - if (NULL != bx::strFindI(outputFileName, ".png") ) + if (NULL != bx::strFindI(saveAs, "png") ) { if (options.format == bimg::TextureFormat::Count) {