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

# glXDestroyGLXPixmap(3x)

destroy a GLX pixmap

## NAME

glXDestroyGLXPixmap - destroy a GLX pixmap

## C SPECIFICATION

void **glXDestroyGLXPixmap**( Display *\*dpy*,

```
	GLXPixmap pix )
```

delim $$

## PARAMETERS

- *dpy*

  Specifies the connection to the X server.

- *pix*

  Specifies the GLX pixmap to be destroyed.

## DESCRIPTION

If the GLX pixmap *pix* is not current to any client, **glXDestroyGLXPixmap** destroys it immediately. Otherwise, *pix* is destroyed when it becomes not current to any client. In either case, the resource ID is freed immediately.

## ERRORS

**GLXBadPixmap** is generated if *pix* is not a valid GLX pixmap.

## SEE ALSO

**glXCreateGLXPixmap**, **glXMakeCurrent**
