Quick-Cocos2dx-Community
Quick-Cocos2dx-Community copied to clipboard
spine 缓存不兼容
当我使用spine lua缓存的时候 texture 计数+1 create spine animation 释放spine lua缓存 spine animation update 崩溃
原因在于,缓存spine 后,texture 计数 一直是2 当我释放lua spine 缓存后,计数器变成1
自动内存回收,导致 texture 被释放。
我的解决方案,暂时为: 在lua createwithdata时, texture +1 释放spine animation后,texture -1
计数器正常
测试代码? 加群描述下问题哈,解决起来快。
这是我的补丁版解决方案。