Re: [PyOpenGL-Users] Problem with glDepthMask
Brought to you by:
mcfletch
From: Ian M. <ia...@ge...> - 2016-01-20 19:31:03
|
On Wed, Jan 20, 2016 at 12:02 PM, Nicolas P. Rougier < Nic...@in...> wrote: > Thanks for your question Ian ! While trying to make a screenshot I found > the answer. > > The rotating cube is displayed partially and it comes worse and worse, as > if the depth buffer was not cleared. > > And it is actually the case. I was not aware that the glClear takes the > depth mask into account > I see the problem now. Yeah, glClear counts as a change to the depth buffer, so it should be affected by the depth mask. Ian |