mirror of https://github.com/axmolengine/axmol.git
issue #1564:enable depth test by default
This commit is contained in:
parent
14dbe091c8
commit
76197f1126
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue