when i use CCClippingNode, it log Stencil buffer is not enabled. how to set thi enable? It run on windows normal. i don’t understand why my project run on the same android machine doesn’t work, but the demo of testCpp is normal???
As far as I know, the stencil buffer uses a decent amount of memory, and so it doesn’t enable it by default.
I think this will help you: (worked for me)
In your Java code, YourProjectName.java, change the line that says
“setEGLConfigChooser”
to this:
glSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 8);
I meet this question on xcode+iphone6.0simulator.My code is almost the same as TestCpp,but it do not work with this log “Cocos2d: Stencil buffer is not enabled.”.
It had puzzled me two days.