Added a (registry object name -> registry object pointer) map to the save method so that registry reference by name can have their actor, sprite, spritesheet, and character references reset
This commit is contained in:
@@ -171,7 +171,7 @@ akerr_ErrorContext *akgl_heap_release_spritesheet(akgl_SpriteSheet *ptr)
|
||||
}
|
||||
if ( ptr->refcount == 0 ) {
|
||||
// TODO : If we go threaded, make sure this is only happening on the main thread
|
||||
SDL_ClearProperty(AKGL_AKGL_REGISTRY_SPRITESHEET, (char *)&ptr->name);
|
||||
SDL_ClearProperty(AKGL_REGISTRY_SPRITESHEET, (char *)&ptr->name);
|
||||
if ( ptr-> texture != NULL )
|
||||
SDL_DestroyTexture(ptr->texture);
|
||||
ptr->texture = NULL;
|
||||
|
||||
Reference in New Issue
Block a user