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,7 +697,8 @@ 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();
|
||||||
|
|
||||||
CHECK_GL_ERROR_DEBUG();
|
CHECK_GL_ERROR_DEBUG();
|
||||||
|
|
Loading…
Reference in New Issue