STATIC SUB DepthMask ( Flag AS Boolean )
Gl.DepthMask specifies whether the depth buffer is enabled for writing. If flag is FALSE, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled.
Gl.GL_INVALID_OPERATION is generated if Gl.DepthMask is called between a call to Gl.Begin and the corresponding call to Gl.End.