---
name: "glXGetContextIDEXT"
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/glXGetContextIDEXT"
---

# glXGetContextIDEXT(3x)

get the XID for a context.

## NAME

glXGetContextIDEXT - get the XID for a context.

## C SPECIFICATION

GLXContextID **glXGetContextIDEXT**( const GLXContext *ctx* )

```

```

delim $$

## PARAMETERS

- *ctx*

  Specifies a GLX rendering context.

## DESCRIPTION

**glXGetContextIDEXT** returns the XID associated with a GLXContext.

No round trip is forced to the server; unlike most X calls that return a value, **glXGetContextIDEXT** does not flush any pending events.

**glXGetContextIDEXT** 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\_import\_context** is supported.

## ERRORS

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

## SEE ALSO

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