OpenGL-Refpages
OpenGL-Refpages copied to clipboard
Reference page for GetTextureSubImage omits valid format enumerators
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