Fixed depth buffer sometimes not cleared
Former-commit-id: a5bda481479a51787601549a306f3a6b809c6afb
This commit is contained in:
parent
0ece160382
commit
f9c9c67076
|
|
@ -117,6 +117,9 @@ void NzRenderer::Clear(unsigned long flags)
|
||||||
if (flags & nzRendererClear_Stencil)
|
if (flags & nzRendererClear_Stencil)
|
||||||
mask |= GL_STENCIL_BUFFER_BIT;
|
mask |= GL_STENCIL_BUFFER_BIT;
|
||||||
|
|
||||||
|
// Les états du rendu sont suceptibles d'influencer glClear
|
||||||
|
NzOpenGL::ApplyStates(s_states);
|
||||||
|
|
||||||
glClear(mask);
|
glClear(mask);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue