mirror of https://github.com/axmolengine/axmol.git
issue #2087: Invokes EventDispatcher::destroyInstance() when purging Director.
This commit is contained in:
parent
80d1c315b3
commit
3a5a1e6604
|
@ -49,6 +49,7 @@ THE SOFTWARE.
|
||||||
#include "actions/CCActionManager.h"
|
#include "actions/CCActionManager.h"
|
||||||
#include "sprite_nodes/CCAnimationCache.h"
|
#include "sprite_nodes/CCAnimationCache.h"
|
||||||
#include "event_dispatcher/CCTouch.h"
|
#include "event_dispatcher/CCTouch.h"
|
||||||
|
#include "event_dispatcher/CCEventDispatcher.h"
|
||||||
#include "support/user_default/CCUserDefault.h"
|
#include "support/user_default/CCUserDefault.h"
|
||||||
#include "shaders/ccGLStateCache.h"
|
#include "shaders/ccGLStateCache.h"
|
||||||
#include "shaders/CCShaderCache.h"
|
#include "shaders/CCShaderCache.h"
|
||||||
|
@ -696,6 +697,7 @@ void Director::purgeDirector()
|
||||||
// cocos2d-x specific data structures
|
// cocos2d-x specific data structures
|
||||||
UserDefault::destroyInstance();
|
UserDefault::destroyInstance();
|
||||||
NotificationCenter::destroyInstance();
|
NotificationCenter::destroyInstance();
|
||||||
|
EventDispatcher::destroyInstance();
|
||||||
|
|
||||||
GL::invalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue