KhronosGroup / OpenGL-Refpages

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

Reference page for GetTextureSubImage omits valid format enumerators #130

Open JuanDiegoMontoya opened 1 year ago

JuanDiegoMontoya commented 1 year ago

See here: https://registry.khronos.org/OpenGL-Refpages/gl4/html/glGetTextureSubImage.xhtml

The 4.5 spec says:

GetTextureSubImage ... level, format, type and pixels have the same meaning as for GetTexImage.

Going there, we see:

GetTexImage ... format is a pixel format from table 8.3

Table 8.3 has the formats from the above link to the reference page for glGetTextureSubImage, except it also has eight _INTEGER formats. These formats should be added to the reference page for the function.

Update: this issue also affects the reference page for glReadPixels: https://registry.khronos.org/OpenGL-Refpages/gl4/html/glReadPixels.xhtml