---
name: "glXFreeContextEXT"
section: "3x"
platform: "linux"
package: "xlibmesa-gl-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/glXFreeContextEXT"
---

# glXFreeContextEXT(3x)

free client-side memory for imported context

## NAME

glXFreeContextEXT - free client-side memory for imported context

## C SPECIFICATION

void **glXFreeContextEXT**( Display *\*dpy*,

```
	GLXContext ctx )
```

delim $$

## PARAMETERS

- *dpy*

  Specifies the connection to the X server.

- *ctx*

  Specifies a GLX rendering context.

## DESCRIPTION

**glXFreeContextEXT** frees the client-side part of a GLXContext that  was created with **glXImportContext**. **glXFreeContextEXT** does not  free the server-side context information or the XID  associated with the server-side context.

**glXFreeContextEXT** is part of the **EXT\_import\_context** extension, not part of the core GLX command set. If **GLX\_EXT\_import\_context** is included in the string returned by **glXQueryExtensionsString**, when called with argument **GLX\_EXTENSIONS**, extension **EXT\_vertex\_array** is supported.

## ERRORS

**GLXBadContext** is generated if *ctx* does not refer to a valid context.

## SEE ALSO

**glXCreateContext**, **glXQueryVersion**, **glXQueryExtensionsString**, **glXImportContextEXT**
