closed #2522: Fix compile error.

This commit is contained in:
boyu0 2013-08-12 18:18:09 +08:00
parent 1f87fa37f4
commit fc923aac93
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ void VolatileTexture::reloadAllTextures()
unsigned long nSize = 0;
unsigned char* pBuffer = FileUtils::getInstance()->getFileData(vt->_fileName.c_str(), "rb", &nSize);
if (pImage && pImage->initWithImageData((void*)pBuffer, nSize))
if (pImage && pImage->initWithImageData(pBuffer, nSize))
{
Texture2D::PixelFormat oldPixelFormat = Texture2D::getDefaultAlphaPixelFormat();
Texture2D::setDefaultAlphaPixelFormat(vt->_pixelFormat);