Notes
Even if the depth buffer exists and the depth mask is non-zero, the depth buffer is not
updated if the depth test is disabled.
Errors
•
•
Associated Gets
glGet with argument GL_DEPTH_FUNC
glIsEnabled with argument GL_DEPTH_TEST
See Also
glDepthRange,
glEnable,
glPolygonOffset
Chapter 4
GL_INVALID_ENUM is generated if func is not an accepted value.
GL_INVALID_OPERATION is generated if glDepthFunc is executed between the
execution of glBegin and the corresponding execution of glEnd.
D
glDepthFunc
101