google / google/gapid

Misleading message for invalid bitfield in supportedBits()

Open
#3,016 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.2k
Forks
329
PR merge metrics
No merged PRs in 30d

Description

The command `glClear(GL_ARRAY_BUFFER)` leads to the following error message:
```
Invalid value 0. It must be 34962.
```

This comes from the call to supportsBits() in the implem of glClear. supportsBits() should be updated in order to provide an error message closer to:
```
Invalid value for bitfield. Possible values are: GL_[...]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.