Light | Dark

glDeleteRenderbuffers

Name

glDeleteRenderbuffers — delete named renderbuffer objects

C Specification

void glDeleteRenderbuffers(GLsizei n,
const GLuint * renderbuffers);

Parameters

n

Specifies the number of renderbuffer objects to be deleted.

renderbuffers

Specifies an array of renderbuffer objects to be deleted.

Description

glDeleteRenderbuffers deletes n renderbuffer objects named by the elements of the array renderbuffers. After a renderbuffer object is deleted, it has no contents, and its name is free for reuse (for example by glGenRenderbuffers).

If a renderbuffer object that is currently bound is deleted, the binding reverts to 0 (the absence of any renderbuffer object). Additionally, special care must be taken when deleting a renderbuffer object if the image of the renderbuffer is attached to a framebuffer object. In this case, if the deleted renderbuffer object is attached to the currently bound framebuffer object, it is automatically detached. However, attachments to any other framebuffer objects are the responsibility of the application.

glDeleteRenderbuffers silently ignores 0's and names that do not correspond to existing renderbuffer objects.

Errors

GL_INVALID_VALUE is generated if n is negative.

Associated Gets

glIsRenderbuffer

Think you can improve this page? Edit this page on GitHub.