OpenGL man pages
glXDestroyGLXPixmap - destroy a GLX pixmap
void glXDestroyGLXPixmap( Display *dpy,
GLXPixmap pix )
dpy Specifies the connection to the X server.
pix Specifies the GLX pixmap to be destroyed.
If 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
GLXBadPixmap is generated if pix is not a valid GLX pixmap.
Fri Dec 6 11:18:03 EST 1996
Look here for legal stuff: Legal