<!--
{
  "availability" : [
    "macOS: 10.5.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/QCPlugInInputImageSource/unbindTextureRepresentation(fromCGLContext:textureUnit:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(pl)QCPlugInInputImageSource(im)unbindTextureRepresentationFromCGLContext:textureUnit:"
  },
  "title" : "unbindTextureRepresentation(fromCGLContext:textureUnit:)"
}
-->

# unbindTextureRepresentation(fromCGLContext:textureUnit:)

Unbinds the texture from a texture unit.

```
func unbindTextureRepresentation(fromCGLContext cgl_ctx: CGLContextObj!, textureUnit unit: GLenum)
```

## Parameters

`cgl_ctx`

A CGL context.)

`unit`

The texture unit to unbind from (such as, `GL_TEXTURE0`)

---

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)