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

# glXIsDirect(3x)

indicate whether direct rendering is enabled

## NAME

glXIsDirect - indicate whether direct rendering is enabled

## C SPECIFICATION

Bool **glXIsDirect**( Display *\*dpy*,

```
	GLXContext ctx )
```

delim $$

## PARAMETERS

- *dpy*

  Specifies the connection to the X server.

- *ctx*

  Specifies the GLX context that is being queried.

## DESCRIPTION

**glXIsDirect** returns **True** if *ctx* is a direct rendering context, **False** otherwise. Direct rendering contexts pass rendering commands directly from the calling process's address space to the rendering system, bypassing the X server. Nondirect rendering contexts pass all rendering commands to the X server.

## ERRORS

**GLXBadContext** is generated if *ctx* is not a valid GLX context.

## SEE ALSO

**glXCreateContext**
