mirror of https://github.com/axmolengine/axmol.git
issue #2188:fix compiling error of iOS
This commit is contained in:
parent
cc2b00e9fe
commit
0857fdd599
|
@ -481,7 +481,7 @@ bool CCImage::initWithImageData(void * pData,
|
|||
CC_BREAK_IF(! pData || nDataLen <= 0);
|
||||
if (eFmt == kFmtRawData)
|
||||
{
|
||||
bRet = _initWithRawData(pData, nDataLen, nWidth, nHeight, nBitsPerComponent);
|
||||
bRet = _initWithRawData(pData, nDataLen, nWidth, nHeight, nBitsPerComponent, false);
|
||||
}
|
||||
else if (eFmt == kFmtWebp)
|
||||
{
|
||||
|
@ -505,7 +505,7 @@ bool CCImage::initWithImageData(void * pData,
|
|||
return bRet;
|
||||
}
|
||||
|
||||
bool CCImage::_initWithRawData(void *pData, int nDatalen, int nWidth, int nHeight, int nBitsPerComponent)
|
||||
bool CCImage::_initWithRawData(void *pData, int nDatalen, int nWidth, int nHeight, int nBitsPerComponent, bool bPreMulti)
|
||||
{
|
||||
bool bRet = false;
|
||||
do
|
||||
|
|
Loading…
Reference in New Issue