<!--
{
  "availability" : [
    "iOS: 2.0.0 - 12.0.0",
    "iPadOS: 2.0.0 - 12.0.0",
    "macCatalyst: 2.0.0 - 12.0.0",
    "tvOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "OpenGLES",
  "identifier" : "/documentation/OpenGLES/EAGLContext/presentRenderbuffer(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "OpenGL ES",
      "OpenGLES"
    ],
    "preciseIdentifier" : "c:objc(cs)EAGLContext(im)presentRenderbuffer:"
  },
  "title" : "presentRenderbuffer(_:)"
}
-->

# presentRenderbuffer(_:)

Displays a renderbuffer’s contents on screen.

```
func presentRenderbuffer(_ target: Int) -> Bool
```

## Parameters

`target`

The OpenGL ES binding point for a currently bound renderbuffer. The value of this parameter must be `GL_RENDERBUFFER` (or `GL_RENDERBUFFER_OES` in an OpenGL ES 1.1 context).

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if successful; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

The renderbuffer to be displayed must have been allocated storage using the [`renderbufferStorage(_:from:)`](/documentation/OpenGLES/EAGLContext/renderbufferStorage(_:from:)) method. The exact semantics for how and when the renderbuffer contents are displayed is controlled by the drawable object.

> Important:
> The contents of the renderbuffer may be altered after the renderbuffer is presented to the screen. After presenting the renderbuffer, your application must  *completely* redraw the contents of the renderbuffer before presenting it again. To preserve the contents of the renderbuffer you may set the ``doc://com.apple.opengles/documentation/OpenGLES/kEAGLDrawablePropertyRetainedBacking`` key of the `drawableProperties` dictionary to <doc://com.apple.documentation/documentation/Swift/true>. Setting the key to <doc://com.apple.documentation/documentation/Swift/true> may result in reduced graphics performance and increased memory usage. Therefore, choose this setting only when you need the renderbuffer’s contents to remain unchanged.

## See Also

[`func renderbufferStorage(Int, from: (any EAGLDrawable)?) -> Bool`](/documentation/OpenGLES/EAGLContext/renderbufferStorage(_:from:))

Binds a drawable object’s storage to an OpenGL ES renderbuffer object.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)