openGL错误在使用Apportable和CCButton时0x0502 Android上



具体来说,错误为OpenGL error 0x0502 in -[CCES2Renderer resizeFromLayer:] 140此错误仅发生在Android上,而不是iOS版本。我找到了导致此错误的代码行(禁用它们可以解决问题,但我需要在游戏中使用按钮)。这些是从我的主场景中从onEnter调用的。

CCButton *newUserButton = [[CCButton alloc] initWithTitle:@"New user"];
[self addChild:newUserButton];

你用的是哪个版本的Apportable?如果您使用的是 1.1.04.1,那么解决方案很简单,即"便携式升级"。

http://www.cocos2d-iphone.org/forums/topic/cocos2d-v3-with-apportable-problems/

最新更新