CCTexture2D interface changed

This commit is contained in:
carlo morgantini 2013-07-31 13:59:08 -07:00
parent b2579987e5
commit ba4a48ec7a
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ bool TextPageDef::generatePageTexture(bool releasePageData)
if (!_pageTexture)
return false;
bool textureCreated = _pageTexture->initWithData(_pageData, kCCTexture2DPixelFormat_Default, _width, _height, imageSize);
int dataLenght = (_width * _height * 4);
bool textureCreated = _pageTexture->initWithData(_pageData, dataLenght, Texture2D::PixelFormat::RGBA8888, _width, _height, imageSize);
// _pageTexture->setPremultipliedAlpha(true);