From e4358cf90454860e791113aee512ff2008852102 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Mon, 30 Sep 2013 00:54:09 +0200 Subject: [PATCH] Fixed ("fixed") Android rendering, #33. --- spine-cocos2d-iphone/src/spine/spine-cocos2d-iphone.m | 2 +- spine-cocos2dx/src/spine/spine-cocos2dx.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-cocos2d-iphone/src/spine/spine-cocos2d-iphone.m b/spine-cocos2d-iphone/src/spine/spine-cocos2d-iphone.m index 755a498bd..9b43c812b 100644 --- a/spine-cocos2d-iphone/src/spine/spine-cocos2d-iphone.m +++ b/spine-cocos2d-iphone/src/spine/spine-cocos2d-iphone.m @@ -36,7 +36,7 @@ void _AtlasPage_createTexture (AtlasPage* self, const char* path) { CCTexture2D* texture = [[CCTextureCache sharedTextureCache] addImage:@(path)]; - CCTextureAtlas* textureAtlas = [[CCTextureAtlas alloc] initWithTexture:texture capacity:4]; + CCTextureAtlas* textureAtlas = [[CCTextureAtlas alloc] initWithTexture:texture capacity:128]; self->rendererObject = textureAtlas; CGSize size = texture.contentSizeInPixels; self->width = size.width; diff --git a/spine-cocos2dx/src/spine/spine-cocos2dx.cpp b/spine-cocos2dx/src/spine/spine-cocos2dx.cpp index ed5af2c5b..c09293a3f 100644 --- a/spine-cocos2dx/src/spine/spine-cocos2dx.cpp +++ b/spine-cocos2dx/src/spine/spine-cocos2dx.cpp @@ -38,7 +38,7 @@ USING_NS_CC; void _AtlasPage_createTexture (AtlasPage* self, const char* path) { CCTexture2D* texture = CCTextureCache::sharedTextureCache()->addImage(path); - CCTextureAtlas* textureAtlas = CCTextureAtlas::createWithTexture(texture, 4); + CCTextureAtlas* textureAtlas = CCTextureAtlas::createWithTexture(texture, 128); textureAtlas->retain(); self->rendererObject = textureAtlas; self->width = texture->getPixelsWide();