mirror of https://github.com/axmolengine/axmol.git
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:
parent
20d7abe6f3
commit
8e195723e6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue