KhronosGroup / OpenGL-Refpages

OpenGL and OpenGL ES reference page sources, and generated HTML used as backing store for khronos.org
427 stars 134 forks source link

glDrawElements* `indices` parameter inconsistency #82

Open mkoncek opened 4 years ago

mkoncek commented 4 years ago

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.