<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.4.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVOpenGLBufferPoolRetain",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVOpenGLBufferPoolRetain"
  },
  "title" : "CVOpenGLBufferPoolRetain"
}
-->

# CVOpenGLBufferPoolRetain

Retains an OpenGL buffer pool.

```
extern CVOpenGLBufferPoolRefCVOpenGLBufferPoolRetain(CVOpenGLBufferPoolRef openGLBufferPool);
```

## Parameters

`openGLBufferPool`

The OpenGL buffer pool that you want to retain.

## Return Value

For convenience, the same buffer pool object you wanted to retain.

## Discussion

This function is equivalent to `CFRetain`, but is `NULL` safe.

---

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)