---
name: "gluErrorString"
section: "3x"
platform: "linux"
package: "xlibmesa-glu-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/gluErrorString"
---

# gluErrorString(3x)

produce an error string from a GL or GLU error code

## NAME

**gluErrorString** - produce an error string from a GL or GLU error code

## C SPECIFICATION

const GLubyte \* **gluErrorString**( GLenum *error* )

```

```

delim $$

## PARAMETERS

- *error*

  Specifies a GL or GLU error code.

## DESCRIPTION

**gluErrorString** produces an error string from a GL or GLU error code. The string is in ISO Latin 1 . For example, **gluErrorString**(**GL\_OUT\_OF\_MEMORY**) returns the string  *out of memory*.

The standard GLU error codes are **GLU\_INVALID\_ENUM**,  **GLU\_INVALID\_VALUE**, and **GLU\_OUT\_OF\_MEMORY**. Certain other GLU functions can return specialized error codes through callbacks. See the **glGetError** reference page for the list of  GL error codes.

## ERRORS

**NULL** is returned if *error* is not a valid GL or GLU error code.

## SEE ALSO

**glGetError(3G)**, **gluNurbsCallback(3G)**, **gluQuadricCallback(3G)**, **gluTessCallback(3G)**
