Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum of error for glBindBuffer for gl4 is wrong #149

Open
shajder opened this issue Apr 22, 2024 · 0 comments
Open

Enum of error for glBindBuffer for gl4 is wrong #149

shajder opened this issue Apr 22, 2024 · 0 comments

Comments

@shajder
Copy link

shajder commented Apr 22, 2024

it is: GL_INVALID_VALUE is generated if buffer is not a name previously returned from a call to glGenBuffers.

it should be INVALID_OPERATION, spec reference:

BindBuffer fails and an INVALID_OPERATION error is generated if buffer is
not zero or a name returned from a previous call to GenBuffers, or if such a name
has since been deleted with DeleteBuffers.

BTW. gl3 core spec does not specify any error, 3.1 and higher states as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant