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

# glResetHistogram(3x)

reset histogram table entries to zero

## NAME

**glResetHistogram** - reset histogram table entries to zero

## C SPECIFICATION

void **glResetHistogram**( GLenum *target* )

```

```

## PARAMETERS

- *target*

  Must be **GL\_HISTOGRAM**.

## DESCRIPTION

**glResetHistogram** resets all the elements of the current histogram table to zero.

## NOTES

**glResetHistogram** is present only if **GL\_ARB\_imaging** is returned when **glGetString** is called with an argument of **GL\_EXTENSIONS**.

## ERRORS

**GL\_INVALID\_ENUM** is generated if *target* is not **GL\_HISTOGRAM**.

**GL\_INVALID\_OPERATION** is generated if **glResetHistogram** is executed between the execution of **glBegin** and the corresponding execution of **glEnd**.

## SEE ALSO

**glHistogram(3G)**
