glClearGLDEPTHBUFFERBIT
glClear is an OpenGL function used to reset the contents of the currently bound framebuffer’s buffers. It takes a bitwise OR of buffer mask constants such as GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_STENCIL_BUFFER_BIT, and GL_ACCUM_BUFFER_BIT. The buffers cleared are reset to their current clear values, which are set with glClearColor for color buffers, glClearDepth or glClearDepthf for the depth buffer, and glClearStencil for the stencil buffer. Clearing is affected by the current write masks and by the scissor test and viewport state.
To clear the depth buffer, the GL_DEPTH_BUFFER_BIT mask is used. The depth value written during the clear
There is no function named glClearGLDEPTH; the correct approach is to call glClear with GL_DEPTH_BUFFER_BIT, optionally