depth test always

This commit is contained in:
yangxiao 2015-08-26 16:37:48 +08:00
parent 7884138dcc
commit 2f72a88a20
1 changed files with 2 additions and 2 deletions

View File

@ -308,8 +308,8 @@ void CameraBackgroundSkyBoxBrush::drawBackground(Camera* camera)
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
RenderState::StateBlock::_defaultState->setDepthTest(true); RenderState::StateBlock::_defaultState->setDepthTest(true);
glDepthFunc(GL_LEQUAL); glDepthFunc(GL_ALWAYS);
RenderState::StateBlock::_defaultState->setDepthFunction(RenderState::DEPTH_LEQUAL); RenderState::StateBlock::_defaultState->setDepthFunction(RenderState::DEPTH_ALWAYS);
glEnable(GL_CULL_FACE); glEnable(GL_CULL_FACE);
RenderState::StateBlock::_defaultState->setCullFace(true); RenderState::StateBlock::_defaultState->setCullFace(true);