Help about resource release


Is there any callback when the director will be purged.
For example, I write a manager and hold some object data .It contains textures or sprites.When the games starts,it loads resrouces into the manager.I try to release these resources when the in AppDelegate’s destruction function.But the glView was destroyed before that.So glDeleteTextures will cause crash.


It seems no callback here, just hack the framework as you wish.