Cocos2d:OpenGL错误0x0500 CCTextureAtlas.cpp drawNumberOfQuads 686
当我使用setString更新单词时,OpenGL将滚动错误。或者使用单词初始化CCLabelBMFont。
cocos2d.x.version: cocos2d-x 2.2.6
cocos2d.x.compiled_with_profiler: false
cocos2d.x.compiled_with_gl_state_cache: true
gl.vendor: Apple Inc.
gl.renderer: Apple A8 GPU
gl.version: OpenGL ES 2.0 Apple A8 GPU - 50.6.10
gl.max_texture_size: 4096
gl.max_texture_units: 8
gl.max_samples_allowed: 4
gl.supports_PVRTC: true
gl.supports_NPOT: true
gl.supports_BGRA8888: false
gl.supports_discard_framebuffer: true
gl.supports_vertex_array_object: true
答案 0 :(得分:0)
我解决了我的问题。这不是cocos2dx问题.....
池代码原因:
void Box2dCCSprite::setOpacity(GLubyte opacity){
super::setOpacity(opacity);
if (m_pChildren) {
for (int i=m_pChildren->count()-1; i>=0; i--) {
CCSprite* child = dynamic_cast<CCSprite*>(m_pChildren->objectAtIndex(i));
//CCSprite* child=(CCSprite*)m_pChildren->objectAtIndex(i);
if (child) {
child->setOpacity(opacity);
}
}
}
}
评论是错误代码。