Commit Graph

15 Commits

Author SHA1 Message Date
James Chen cc1f3423d4 Reverts PR #1062 which may lead to other issues, fix it by another way. (#1117)
* Fixes custom listener returned by cc.eventManager.addCustomListener isn't attached to cc.eventManager.

* Reverts PR #1062 which may lead to other issues, fix it by another way.
1. JS LifeCycle control for GLProgram, GLProgramState.
2. jsb.registerNativeRef should be invoked in JS for cc.TMXTiledMap.getLayer/getObjectGroup/getObjectGroups, cc.TMXObjectGroup.getObject, cc.TMXObjectGroup.getObjects, cc.TMXObject.prototype.getNode.
2018-02-22 17:44:12 +08:00
James Chen fca4269555 fixed #1041: Potential crash in invokeJSTouchOneByOneCallback. (#1043)
And fixed potential invalid se::Object after invoking cc.director.getScheduler/getActionManager/getEventDispatcher, cc.SpriteFrame/Sprite.getTexture.
Added hook functions in EventDispatcher, TextureCache to prevent using dangerous se::Object.
Stop propagation for TouchOneByOne event should only affect current Touch point.
Fixed updateListener may not be invoked.
2018-01-10 13:44:20 +08:00
James Chen e90d906ba3 Sync PR: fix CCTextureCache addImageAsync race condition
https://github.com/cocos2d/cocos2d-x/pull/18366
2017-11-07 15:48:56 +08:00
James Chen 7fae7201d7 initWithImageFileThreadsafe -> initWithImageFile. 2017-09-26 09:55:00 +08:00
James Chen c7089bfa86 Image refactor 2017-09-26 04:57:49 +08:00
James Chen 73c318d105 memory leak fix in CCTextureCache::addImageAsync. 2017-07-21 15:22:09 +08:00
Nan Wang ef368ef409 merged v1.2 2016-09-07 18:47:59 +08:00
knoxHuang b73e97e403 add enableAntiAlias for Native for fireball/issues/2836 2016-08-29 16:33:52 +08:00
pandamicro ab95942886 Upgrade cocos/renderer to v3.13 2016-08-05 19:30:31 +08:00
minggo 0c75e52e1b Texture2D::addImageAsync : Set pixel format correctly. 2016-07-18 17:10:01 +08:00
Wenhai Lin d4481bfd5a Refine (#48) 2016-04-28 11:58:34 +08:00
Wenhai Lin efc97073e3 Fixed memory leak 2016-04-18 11:06:14 +08:00
Wenhai Lin 2a68bf1c50 Iterator erase pattern 2016-04-07 16:32:25 +08:00
Wenhai Lin 94c95d5838 Withespaces does matter. 2016-03-31 23:50:02 +08:00
Wenhai Lin a6dbf31dcf cocos 2d lite version 2016-03-29 17:55:48 +08:00