mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +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) {
|
||||
CCTexture2D* texture = [[CCTextureCache sharedTextureCache] addImage:@(path)];
|
||||
CCTextureAtlas* textureAtlas = [[CCTextureAtlas alloc] initWithTexture:texture capacity:4];
|
||||
[textureAtlas retain];
|
||||
self->rendererObject = textureAtlas;
|
||||
CGSize size = texture.contentSizeInPixels;
|
||||
self->width = size.width;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user