[core] apply depth test for blit operations

This commit is contained in:
ExMix 2014-10-18 13:34:36 +03:00 committed by Alex Zolotarev
parent 58cdad37ec
commit 405e770f72

View file

@ -376,8 +376,9 @@ namespace graphics
void GeometryRenderer::ApplyBlitStates::perform()
{
OGLCHECK(glDisable(GL_DEPTH_TEST));
OGLCHECK(glDepthMask(GL_FALSE));
OGLCHECK(glEnable(GL_DEPTH_TEST));
OGLCHECK(glDepthFunc(GL_LEQUAL));
OGLCHECK(glDepthMask(GL_TRUE));
/// Applying program
gl::RenderContext * rc = static_cast<gl::RenderContext*>(renderContext());