mirror of https://github.com/axmolengine/axmol.git
Let CCDirector set all GL state
This commit is contained in:
parent
175316f2c6
commit
9d8e2d991b
|
@ -171,12 +171,6 @@ static cocos_dimensions engine_init_display(struct engine* engine) {
|
|||
engine->height = h;
|
||||
engine->state.angle = 0;
|
||||
|
||||
// Initialize GL state.
|
||||
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
|
||||
glEnable(GL_CULL_FACE);
|
||||
glShadeModel(GL_SMOOTH);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
|
||||
r.w = w;
|
||||
r.h = h;
|
||||
|
||||
|
|
Loading…
Reference in New Issue