From 3931273a58f5cd232f726c5fedacd0fc3b44534b Mon Sep 17 00:00:00 2001 From: Vladimir Perminov Date: Sat, 4 Apr 2015 13:19:47 +0300 Subject: [PATCH] Log message can't detect image format Wrong log message DDS and KTX check image format(other format no log message). isS3TC and isATITC protected, no use dev code. Log message if format unknown --- cocos/platform/CCImage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cocos/platform/CCImage.cpp b/cocos/platform/CCImage.cpp index 5d8f86e89a..d2fcf9b9ce 100644 --- a/cocos/platform/CCImage.cpp +++ b/cocos/platform/CCImage.cpp @@ -635,7 +635,6 @@ bool Image::isS3TC(const unsigned char * data, ssize_t dataLen) if (strncmp(header->fileCode, "DDS", 3) != 0) { - CCLOG("cocos2d: the file is not a dds file!"); return false; } return true; @@ -647,7 +646,6 @@ bool Image::isATITC(const unsigned char *data, ssize_t dataLen) if (strncmp(&header->identifier[1], "KTX", 3) != 0) { - CCLOG("cocos3d: the file is not a ktx file!"); return false; } return true; @@ -742,6 +740,7 @@ Image::Format Image::detectFormat(const unsigned char * data, ssize_t dataLen) } else { + CCLOG("cocos2d: can't detect image format"); return Format::UNKNOWN; } }