如标题所描述,在不勾选上 Premultiply Alpha 选项时,可以正常游戏,勾选后会闪退,并有以下报错:
A/libc: /Users/user01/cocos/ide-android/frameworks/cocos2d-x/cocos/base/CCGLUtils.cpp:378: void cocos2d::premultiplyPixels(const GLubyte *, GLubyte *, GLenum, uint32_t, uint32_t, uint32_t): assertion "byteLength == expectedTotalBytes" failed
D/: addLayerName, tid:27878
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 27878 (GLThread 1522), pid 25541 (es.sketch.demo1)
D/Cocos2dxActivity: onPause()
即CCGLUtils.cpp中的void premultiplyPixels()里的断言失败触发的,但搞不清楚为啥这样。是否我有哪些地方没弄对?
版本:Cocos Creator 2.3.3
打包平台:Mac os
手机系统:Android
另外,图集在Etc2(RGBA)下,如果选用Slow模式,打图集几乎必卡死,目前改用Fast方式。