Your company here — click to reach over 10,000 unique daily visitors

glDeleteFramebuffers.3G - Man Page

delete framebuffer objects

C Specification

void glDeleteFramebuffers(GLsizei n, GLuint *framebuffers);



Specifies the number of framebuffer objects to be deleted.


A pointer to an array containing n framebuffer objects to be deleted.


glDeleteFramebuffers deletes the n framebuffer objects whose names are stored in the array addressed by framebuffers. The name zero is reserved by the GL and is silently ignored, should it occur in framebuffers, as are other unused names. Once a framebuffer object is deleted, its name is again unused and it has no attachments. If a framebuffer that is currently bound to one or more of the targets GL_DRAW_FRAMEBUFFER or GL_READ_FRAMEBUFFER is deleted, it is as though glBindFramebuffer() had been executed with the corresponding target and framebuffer zero.


GL_INVALID_VALUE is generated if n is negative.

Version Support

OpenGL Version
Function / Feature Name2.

See Also

glGenFramebuffers(), glBindFramebuffer(), glCheckFramebufferStatus()

Referenced By

glBindFramebuffer.3G(3), glBlitFramebuffer.3G(3), glCheckFramebufferStatus.3G(3), glCreateFramebuffers.3G(3), glGenFramebuffers.3G(3), glIsFramebuffer.3G(3).