---
title: clearCurrentContext()
framework: appkit
role: symbol
role_heading: Type Method
path: appkit/nsopenglcontext/clearcurrentcontext()
---

# clearCurrentContext()

Clears the current context.

## Declaration

```swift
class func clearCurrentContext()
```

## Discussion

Discussion Until you issue a subsequent call to the makeCurrentContext() method, OpenGL calls do nothing.

## See Also

### Managing the Current Context

- [current](appkit/nsopenglcontext/current.md)
- [makeCurrentContext()](appkit/nsopenglcontext/makecurrentcontext().md)
