forked from organicmaps/organicmaps
[core] apply depth test for blit operations
This commit is contained in:
parent
58cdad37ec
commit
405e770f72
1 changed files with 3 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue