This extension provides the same interaction for OpenGL ES that
ARB_depth_clamp does for OpenGL.

v2: Add GL_DEPTH_CLAMP_EXT for this extension (thanks  @kusma)

v3: - correct use of DEPTH_CLAMP to DEPTH_CLAMP_EXT
    - point o the issues in ARB_depth_clamp and only retain (and update)
      the wording for primitive with w_c <= 0 and point out differences to
      ARB_depth_clamp otherwise. (all thanks @dgkoch)

v4: - remove header changes from commit (@oddhack)

Signed-off-by: Gert Wollny <>
4 files changed