issue #1564:enable depth test by default

This commit is contained in:
minggo 2012-11-22 16:01:30 +08:00
parent 14dbe091c8
commit 76197f1126
1 changed files with 3 additions and 1 deletions

View File

@ -193,7 +193,9 @@ void CCDirector::setGLDefaultValues(void)
CCAssert(m_pobOpenGLView, "opengl view should not be null"); CCAssert(m_pobOpenGLView, "opengl view should not be null");
setAlphaBlending(true); 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); setProjection(m_eProjection);
// set other opengl default values // set other opengl default values