glDisable Function

Syntax

GL_APICALL void GL_APIENTRY glDisable(
     GLenum cap
);

Parameters

Name Description
in cap Name of feature to disable

Return Values

No values are returned.

Description

Disables specific GL features.

You can set cap to the following values.

GL_COLOR_LOGIC_OPDisables logical operations on pixels.
GL_BLENDDisables the blend feature.
GL_DEPTH_TESTDisables depth tests.
GL_STENCIL_TESTDisables stencil tests.
GL_SCISSOR_TESTDisables scissoring.
GL_CULL_FACEDisables culling.
GL_POLYGON_OFFSET_FILLDisables polygon offsets.
GL_EARLY_DEPTH_TEST_DMPDisables early depth tests.
GL_DEPTH_STENCIL_COPY_DMPDisables the depth stencil copy feature.

You cannot specify GL_EARLY_DEPTH_TEST_DMP from POD.

This function generates the following errors.

GL_INVALID_ENUMThe cap argument was set to an invalid value.
GL_INVALID_OPERATIONThis function was called without any command-list objects bound.

Revision History

2010/08/12
Added description of GL_DEPTH_STENCIL_COPY_DMP for the depth stencil copy feature.
2010/01/07
Initial version.

CONFIDENTIAL