From 76197f1126af9724889a5040e0d4b47d322d1c7b Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 22 Nov 2012 16:01:30 +0800 Subject: [PATCH] issue #1564:enable depth test by default --- cocos2dx/CCDirector.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cocos2dx/CCDirector.cpp b/cocos2dx/CCDirector.cpp index a5a2d00d37..8fd03877f1 100644 --- a/cocos2dx/CCDirector.cpp +++ b/cocos2dx/CCDirector.cpp @@ -193,7 +193,9 @@ void CCDirector::setGLDefaultValues(void) CCAssert(m_pobOpenGLView, "opengl view should not be null"); setAlphaBlending(true); - setDepthTest(false); + // XXX: Fix me, should enable/disable depth test according the depth format as cocos2d-iphone did + // [self setDepthTest: view_.depthFormat]; + setDepthTest(true); setProjection(m_eProjection); // set other opengl default values