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

Is texture = 0 sound for glBindTexture? #12

Open
lcnr opened this issue Mar 9, 2020 · 0 comments
Open

Is texture = 0 sound for glBindTexture? #12

lcnr opened this issue Mar 9, 2020 · 0 comments
Labels
help wanted Extra attention is needed P-low Low priority question Further information is requested

Comments

@lcnr
Copy link
Owner

lcnr commented Mar 9, 2020

According to the official references 0 is reserved for the default texture of a given texture target, which is why I think that gl::BindTexture(gl::TEXTURE_2D, 0) should just load the default texture and not error.

However, in the error section there is the following line:

GL_INVALID_VALUE is generated if texture is not a name returned from a previous call to glGenTextures.

As 0 may not have been returned from glGenTextures when gl::BindTexture is called for the first time, this would mean that an error should be returned (which my OpenGL implementation does not do).

@lcnr lcnr added help wanted Extra attention is needed question Further information is requested P-low Low priority labels Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed P-low Low priority question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant