Closed jeaye closed 11 years ago
Each loaded state needs to be cleaned up when the game comes to an end (particularly for releasing GL names). To do this, the Director needs to unload all states before it's destroyed.
This is blocked on the ability to mutate the Director in its dtor. See https://github.com/mozilla/rust/issues/4330
Each loaded state needs to be cleaned up when the game comes to an end (particularly for releasing GL names). To do this, the Director needs to unload all states before it's destroyed.