glClampColor.3G man page

glClampColor — specify whether data read via glReadPixels() should be clamped

C Specification

void glClampColor(GLenum target, GLenum clamp);



Target for color clamping. target must be GL_CLAMP_READ_COLOR.


Specifies whether to apply color clamping. clamp must be GL_TRUE or GL_FALSE.


glClampColor controls color clamping that is performed during glReadPixels(). target must be GL_CLAMP_READ_COLOR. If clamp is GL_TRUE, read color clamping is enabled; if clamp is GL_FALSE, read color clamping is disabled. If clamp is GL_FIXED_ONLY, read color clamping is enabled only if the selected read buffer has fixed point components and disabled otherwise.


GL_INVALID_ENUM is generated if target is not GL_CLAMP_READ_COLOR.

GL_INVALID_ENUM is generated if clamp is not GL_TRUE or GL_FALSE.

Associated Gets

glGet() with argument GL_CLAMP_READ_COLOR.


02/04/2016 [FIXME: source] [FIXME: manual]