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

glDrawElements* indices parameter inconsistency #82

Open
mkoncek opened this issue May 24, 2020 · 0 comments · May be fixed by #140
Open

glDrawElements* indices parameter inconsistency #82

mkoncek opened this issue May 24, 2020 · 0 comments · May be fixed by #140

Comments

@mkoncek
Copy link
Contributor

mkoncek commented May 24, 2020

  1. From https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glDrawElements.xhtml:
    "indices: Specifies a pointer to the location where the indices are stored."

  2. From https://www.khronos.org/opengl/wiki/GLAPI/glDrawElements:
    "indices: Specifies a byte offset (cast to a pointer type) into the buffer bound to GL_ELEMENT_ARRAY_BUFFER to start reading indices from."

I have had a talk about this on IRC and I was told that the second version is correct (requiring an Element Buffer to be bound) even if it worked if used according to the first definition. I am not sure how exactly it should be formulated (or whether this is a matter of OpenGL version) but this inconsistency in wording certainly needs to be fixed.

@NogginBops NogginBops linked a pull request Mar 16, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant