1.CCClippingNode在部分android上不起作用需要修改src\org\cocos2dx\lib\Cocos2dxGLSurfaceView.java
//from
public Cocos2dxGLSurfaceView onCreateView() {
return new Cocos2dxGLSurfaceView(this);
}
//to
public Cocos2dxGLSurfaceView onCreateView()
{
Cocos2dxGLSurfaceView glSurfaceView = new
Cocos2dxGLSurfaceView(this);
glSurfaceView.setEGLConfigChooser(5, 6, 5, 0,
16, 8);
return glSurfaceView;
}
2.注释掉这句可以避免崩溃 bat why?
// program->setUniformLocationWith1f(alphaValueLocation, m_fAlphaThreshold);//change by ix 2014-6-8
参考:
http://blog.csdn.net/honghaier/article/details/8858743
cocos2d-x CCClippingNode 专题,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/sealme/p/3776660.html