mirror of https://github.com/axmolengine/axmol.git
remove unused codes in CCTexture2D
This commit is contained in:
parent
c5f96aaa3b
commit
c90f2b3251
|
@ -535,11 +535,6 @@ bool Texture2D::initWithData(const void *data, ssize_t dataLen, Texture2D::Pixel
|
|||
mipmap.address = (unsigned char*)data;
|
||||
mipmap.len = static_cast<int>(dataLen);
|
||||
return initWithMipmaps(&mipmap, 1, pixelFormat, pixelsWide, pixelsHigh);
|
||||
|
||||
//update information
|
||||
_contentSize = contentSize;
|
||||
_maxS = contentSize.width / (float)(pixelsWide);
|
||||
_maxT = contentSize.height / (float)(pixelsHigh);
|
||||
}
|
||||
|
||||
bool Texture2D::initWithMipmaps(MipmapInfo* mipmaps, int mipmapsNum, PixelFormat pixelFormat, int pixelsWide, int pixelsHigh)
|
||||
|
|
Loading…
Reference in New Issue