glCheckFramebufferStatus Function

Syntax

GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus(
     GLenum target
);

Arguments

Name Description
in target Target

Return Values

Returns the state of the current framebuffer.

Description

Checks settings for the current framebuffer object.

Set target to GL_FRAMEBUFFER.

This function returns the following values.

GL_FRAMEBUFFER_COMPLETEThe correct buffer has been attached to each attachment point.
GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENTNeither the color buffer nor the depth buffer has been attached.
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENTA data region has not been allocated for the buffers configured at each attachment point.
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENTThe same render buffer object was attached to the color and depth buffers.
GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONSBuffers of differing sizes are attached to the different attachment points.

This function generates the following errors.

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

Revision History

2010/01/07
Initial version.

CONFIDENTIAL