From 9d8e2d991b73d8f996829aa4a5cdecbfe4c989b7 Mon Sep 17 00:00:00 2001 From: folecr Date: Mon, 19 Aug 2013 15:57:25 -0700 Subject: [PATCH] Let CCDirector set all GL state --- cocos2dx/platform/android/nativeactivity.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cocos2dx/platform/android/nativeactivity.cpp b/cocos2dx/platform/android/nativeactivity.cpp index de53135e3d..44f063c798 100644 --- a/cocos2dx/platform/android/nativeactivity.cpp +++ b/cocos2dx/platform/android/nativeactivity.cpp @@ -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;