KhronosGroup / OpenGL-Registry

OpenGL, OpenGL ES, and OpenGL ES-SC API and Extension Registry
677 stars 274 forks source link

Removed "len" XML attribute from "pointer" parameter declarations of "glVertexAttribIPointer", "glVertexAttribLPointer" and "glVertexAttribPointer" commands #592

Closed Rytis-Stan closed 10 months ago

Rytis-Stan commented 10 months ago

The removal was done because the "pointer" parameter is not mean to act as an array, but simply as a relative integer offset when defining vertex attributes

Looks like the "len" attribute was added by accident

NogginBops commented 10 months ago

This is likely a leftover from the client-side vertex arrays where these were actual pointers to vertex data. https://www.khronos.org/opengl/wiki/Client-Side_Vertex_Arrays

I'm fine with removing the length param here tough as that API usage is very outdated.

Rytis-Stan commented 10 months ago

This is likely a leftover from the client-side vertex arrays where these were actual pointers to vertex data. https://www.khronos.org/opengl/wiki/Client-Side_Vertex_Arrays

I'm fine with removing the length param here tough as that API usage is very outdated.

Thanks for the link!

pdaniell-nv commented 10 months ago

@oddhack, if you're happy with this change it is approved to merge.