mirror of https://github.com/axmolengine/axmol.git
depth test always
This commit is contained in:
parent
7884138dcc
commit
2f72a88a20
|
@ -308,8 +308,8 @@ void CameraBackgroundSkyBoxBrush::drawBackground(Camera* camera)
|
|||
glEnable(GL_DEPTH_TEST);
|
||||
RenderState::StateBlock::_defaultState->setDepthTest(true);
|
||||
|
||||
glDepthFunc(GL_LEQUAL);
|
||||
RenderState::StateBlock::_defaultState->setDepthFunction(RenderState::DEPTH_LEQUAL);
|
||||
glDepthFunc(GL_ALWAYS);
|
||||
RenderState::StateBlock::_defaultState->setDepthFunction(RenderState::DEPTH_ALWAYS);
|
||||
|
||||
glEnable(GL_CULL_FACE);
|
||||
RenderState::StateBlock::_defaultState->setCullFace(true);
|
||||
|
|
Loading…
Reference in New Issue