GLCHECKFRAMEBUFFERST(3G)

    .SH "NAME" glCheckFramebufferStatus - check the completeness status of a framebuffer
    .SH "C SPECIFICATION"

            .HP u GLenum glCheckFramebufferStatus(GLenum target);

    .SH "PARAMETERS"

        .PP target

                    Specify the target of the framebuffer completeness check.

            .RE

        .SH "DESCRIPTION"
            .PP glCheckFramebufferStatus queries the completeness status of the framebuffer object currently bound to target. target must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER.
            .PP The return value is GL_FRAMEBUFFER_COMPLETE if the framebuffer bound to target is complete. Otherwise, the return value is determined as follows:

        •
                            GL_FRAMEBUFFER_UNDEFINED is returned if target is the default framebuffer, but the default framebuffer does not exist.
                        .RE

            •
                                GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT is returned if any of the framebuffer attachment points are framebuffer incomplete.
                            .RE

                •
                                    GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT is returned if the framebuffer does not have at least one image attached to it.
                                .RE

                    •
                                        GL_FRAMEBUFFER_UNSUPPORTED is returned if depth and stencil attachments, if present, are not the same renderbuffer, or if the combination of internal formats of the attached images violates an implementation-dependent set of restrictions.
                                    .RE

                        •
                                            GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE is returned if the value of GL_RENDERBUFFER_SAMPLES is not the same for all attached renderbuffers or, if the attached images are a mix of renderbuffers and textures, the value of GL_RENDERBUFFER_SAMPLES is not zero.
                                        .RE

                            •
                                                GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS is returned if any framebuffer attachment is layered, and any populated attachment is not layered, or if all populated color attachments are not from textures of the same target.
                                            .RE

                                    .PP Additionally, if an error occurs, zero is returned.

                                .SH "ERRORS"
                                    .PP GL_INVALID_ENUM is generated if target is not GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER.

                                .SH "API VERSION SUPPORT"

                                    .TS allbox tab(:); l l l l l. T{ glCheckFramebufferStatus T}:T{ T}:T{ T}:T{ T}:T{ T}

                                .SH "SEE ALSO"
                                    .PP glGenFramebuffers(), glDeleteFramebuffers() glBindFramebuffer()

                                .SH "COPYRIGHT"
                                    .PP Copyright © 2010-2015 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

COPYRIGHT
Copyright © 2010-2015 Khronos Group