mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-12 18:18:43 +08:00
Fixed ("fixed") Android rendering, #33.
This commit is contained in:
parent
2dc486b2d5
commit
e4358cf904
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user