How could I change the gles clear color?

I tried to modify every glClearColor() calling but only met 1 single break point in CCDirector::setGLDefaultValues, then I tried to modify the value, but it dosen’t work at all.
How could I change the gles clear color?

I know that post is very old but it was buggying me as well.
So here is how i resolved it.

cocos2d::Director::getInstance()->setClearColor(The_Color_That_iWant);

I hope that it helps another one :smiley:

2 Likes