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

# glXQueryContextInfoEXT(3x)

query context information

## NAME

glXQueryContextInfoEXT - query context information

## C SPECIFICATION

int **glXQueryContextInfoEXT**( Display *\*dpy*,

```
	GLXContext ctx,
	int attribute,
	int *value )
```

delim $$

## PARAMETERS

- *dpy*

  Specifies the connection to the X server.

- *ctx*

  Specifies a GLX rendering context.

- *attribute*

  The visual ID that the context was created with.

- *value*

  The X screen the the context was created for.

- \_param5

  The context with which this context shares display lists. or **NULL** if this context does not share display lists.

## DESCRIPTION

**glXQueryContextInfoEXT**  returns the the visual id, screen number, and share list  of *ctx*. This call may cause a round trip to the server.

**glXQueryContextInfoEXT** 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**
