---
title: "releaseCGLPixelFormat(_:)"
framework: quartzcore
role: symbol
role_heading: Instance Method
path: "quartzcore/caopengllayer/releasecglpixelformat(_:)"
---

# releaseCGLPixelFormat(_:)

Releases the specified OpenGL pixel format object.

## Declaration

```swift
func releaseCGLPixelFormat(_ pf: CGLPixelFormatObj)
```

## Parameters

- `pf`: The pixel format object to release.

## Discussion

Discussion This method is called when the OpenGL pixel format that was previously returned by copyCGLContext(forPixelFormat:). You should not call this method directly, it is intended to be overridden by subclasses.

## See Also

### Managing Pixel Format

- [copyCGLPixelFormat(forDisplayMask:)](quartzcore/caopengllayer/copycglpixelformat(fordisplaymask:).md)
