jeaye / q3

A Quake 3 like game with voxelized, destructible maps; written in Rust
BSD 3-Clause "New" or "Revised" License
500 stars 25 forks source link

States are not unloaded when the Director dies #43

Closed jeaye closed 11 years ago

jeaye commented 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.

jeaye commented 11 years ago

This is blocked on the ability to mutate the Director in its dtor. See https://github.com/mozilla/rust/issues/4330