mirror of https://github.com/axmolengine/axmol.git
closed #2522: Fix compile error.
This commit is contained in:
parent
1f87fa37f4
commit
fc923aac93
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue