mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Fixed leaking CCTextureAtlas.
This commit is contained in:
parent
cf7cc1d0ef
commit
adb406a8ac
@ -29,7 +29,6 @@
|
|||||||
void _AtlasPage_createTexture (AtlasPage* self, const char* path) {
|
void _AtlasPage_createTexture (AtlasPage* self, const char* path) {
|
||||||
CCTexture2D* texture = [[CCTextureCache sharedTextureCache] addImage:@(path)];
|
CCTexture2D* texture = [[CCTextureCache sharedTextureCache] addImage:@(path)];
|
||||||
CCTextureAtlas* textureAtlas = [[CCTextureAtlas alloc] initWithTexture:texture capacity:4];
|
CCTextureAtlas* textureAtlas = [[CCTextureAtlas alloc] initWithTexture:texture capacity:4];
|
||||||
[textureAtlas retain];
|
|
||||||
self->rendererObject = textureAtlas;
|
self->rendererObject = textureAtlas;
|
||||||
CGSize size = texture.contentSizeInPixels;
|
CGSize size = texture.contentSizeInPixels;
|
||||||
self->width = size.width;
|
self->width = size.width;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user