KhronosGroup / OpenGL-Refpages

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

gl4: glTexImage* functions miss GL_HALF_FLOAT as input for parameter `type` #42

Closed wwylele closed 5 years ago

wwylele commented 6 years ago

https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glTexImage1D.xhtml https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glTexImage2D.xhtml https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glTexImage3D.xhtml

I checked gl spec and as I read so far the half float type is allowed for transferring pixels. And in fact, the corresponding gles page (https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexImage2D.xhtml) has GL_HALF_FLOAT included for type, so I believe this is also allowed in opengl4.