diff --git a/cocos/2d/CCTextureCache.cpp b/cocos/2d/CCTextureCache.cpp index d840a2e093..e1c160f101 100644 --- a/cocos/2d/CCTextureCache.cpp +++ b/cocos/2d/CCTextureCache.cpp @@ -632,7 +632,7 @@ void VolatileTextureMgr::reloadAllTextures() Data data = FileUtils::getInstance()->getDataFromFile(vt->_fileName); - if (image && image->initWithImageData(data->getBytes(), data->getSize()) + if (image && image->initWithImageData(data->getBytes(), data->getSize())) { Texture2D::PixelFormat oldPixelFormat = Texture2D::getDefaultAlphaPixelFormat(); Texture2D::setDefaultAlphaPixelFormat(vt->_pixelFormat);