Fixed depth buffer sometimes not cleared

Former-commit-id: a5bda481479a51787601549a306f3a6b809c6afb
This commit is contained in:
Lynix 2013-06-26 15:19:29 +02:00
parent 0ece160382
commit f9c9c67076
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ void NzRenderer::Clear(unsigned long flags)
if (flags & nzRendererClear_Stencil)
mask |= GL_STENCIL_BUFFER_BIT;
// Les états du rendu sont suceptibles d'influencer glClear
NzOpenGL::ApplyStates(s_states);
glClear(mask);
}
}