mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3439 from folecr/android_rendering_bugfix
Let CCDirector set all GL state in the Android port
This commit is contained in:
commit
0ec5d6f029
|
@ -171,12 +171,6 @@ static cocos_dimensions engine_init_display(struct engine* engine) {
|
||||||
engine->height = h;
|
engine->height = h;
|
||||||
engine->state.angle = 0;
|
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.w = w;
|
||||||
r.h = h;
|
r.h = h;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue