mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4759 from Dhilan007/develop_crash
fix crash related to not support the z length modifier for size_t on vs
This commit is contained in:
commit
3a1c5e4f6e
|
@ -378,8 +378,8 @@ void SpriteBatchNode::increaseAtlasCapacity(void)
|
||||||
// this is likely computationally expensive
|
// this is likely computationally expensive
|
||||||
ssize_t quantity = (_textureAtlas->getCapacity() + 1) * 4 / 3;
|
ssize_t quantity = (_textureAtlas->getCapacity() + 1) * 4 / 3;
|
||||||
|
|
||||||
CCLOG("cocos2d: SpriteBatchNode: resizing TextureAtlas capacity from [%zd] to [%zd].",
|
CCLOG("cocos2d: SpriteBatchNode: resizing TextureAtlas capacity from [%d] to [%d].",
|
||||||
_textureAtlas->getCapacity(),
|
static_cast<int>(_textureAtlas->getCapacity()),
|
||||||
quantity);
|
quantity);
|
||||||
|
|
||||||
if (! _textureAtlas->resizeCapacity(quantity))
|
if (! _textureAtlas->resizeCapacity(quantity))
|
||||||
|
|
Loading…
Reference in New Issue