Update CCImage.cpp

When you're creating a sprite (e.g. with Sprite* Sprite::create(filename))
There's no way to test the file before, without getting "a unsupport image format!" thrown.
This commit is contained in:
frranck 2015-08-30 09:40:15 +02:00
parent 20d7abe6f3
commit 8e195723e6
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ bool Image::initWithImageData(const unsigned char * data, ssize_t dataLen)
}
else
{
CCAssert(false, "unsupport image format!");
CCLOG("cocos2d: unsupported image format!");
}
free(tgaData);