D
glDepthFunc
Chapter 4
101
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
• 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.
Associated Gets
glGet with argument GL_DEPTH_FUNC
glIsEnabled with argument GL_DEPTH_TEST
See Also
glDepthRange,
glEnable,
glPolygonOffset