KhronosGroup / OpenGL-Refpages

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

Inconsistencies related to buffer texture pnames #102

Open matrefeytontias opened 2 years ago

matrefeytontias commented 2 years ago

In the latest refpages on the glGet page, GL_TEXTURE_BINDING_BUFFER has two incompatible definitions :

GL_TEXTURE_BINDING_BUFFER

    data returns a single value, the name of the texture currently bound to the target GL_TEXTURE_BUFFER. The initial value is 0. See glBindTexture. 
GL_TEXTURE_BINDING_BUFFER

    data returns a single value, the name of the buffer object currently bound to the GL_TEXTURE_BUFFER buffer binding point. The initial value is 0. See glBindBuffer. 

Moreover, glGetTexLevelParameter does not list GL_TEXTURE_BUFFER_DATA_STORE_BINDING as an accepted pname, in contrast with eg the OpenGL ES 3 refpages that do list it. Besides, the OpenGL 4.6 core spec makes no mention of this pname.

Worthy of note is also that the refpage for glBindBuffer does not mention a pname for getting the buffer bound to GL_TEXTURE_BUFFER.

pdaniell-nv commented 2 years ago

Thanks for reporting this issue.

Regarding this:

Besides, the OpenGL 4.6 core spec makes no mention of this [GL_TEXTURE_BUFFER_DATA_STORE_BINDING] pname.

It's on page 599 of the OpenGL 4.6 core spec (https://www.khronos.org/registry/OpenGL/specs/gl/glspec46.core.pdf) in Table 23.17. Some PDF readers have trouble searching for tokens with underscores when the page is landscape.

We'll look into the other issues you reported.