---
title: "unbindTextureRepresentation(fromCGLContext:textureUnit:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/qcplugininputimagesource/unbindtexturerepresentation(fromcglcontext:textureunit:)"
---

# unbindTextureRepresentation(fromCGLContext:textureUnit:)

Unbinds the texture from a texture unit.

## Declaration

```swift
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)

## See Also

### Converting an Image to a Representation

- [lockTextureRepresentation(with:forBounds:)](quartz/qcplugininputimagesource/locktexturerepresentation(with:forbounds:).md)
- [unlockTextureRepresentation()](quartz/qcplugininputimagesource/unlocktexturerepresentation().md)
- [lockBufferRepresentation(withPixelFormat:colorSpace:forBounds:)](quartz/qcplugininputimagesource/lockbufferrepresentation(withpixelformat:colorspace:forbounds:).md)
- [bindTextureRepresentation(toCGLContext:textureUnit:normalizeCoordinates:)](quartz/qcplugininputimagesource/bindtexturerepresentation(tocglcontext:textureunit:normalizecoordinates:).md)
- [unlockBufferRepresentation()](quartz/qcplugininputimagesource/unlockbufferrepresentation().md)
