---
title: unlockTextureRepresentation()
framework: quartz
role: symbol
role_heading: Instance Method
path: quartz/qcplugininputimagesource/unlocktexturerepresentation()
---

# unlockTextureRepresentation()

Releases the OpenGL texture representation of the image source.

## Declaration

```swift
func unlockTextureRepresentation()
```

## See Also

### Converting an Image to a Representation

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