Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.84k stars 819 forks source link

Starling root should be disposed before context #948

Closed neuronix closed 7 years ago

neuronix commented 7 years ago

Hi Daniel,

We noticed that the stage/context is disposed before the actual tree of display objects which can cause errors when disposing & recreating a Starling instance (app relaunch without exit to refresh data for example).

Our fix was to simply add: starling.root.dispose(); Before the call: starling.dispose();

However, it would be better changed in the framework I think.

Kind regards,

Cameron

PrimaryFeather commented 7 years ago

Agreed! Thanks a lot for making me aware of this.