Khronos Public Bugzilla
Bug 440 - Documentation of format argument to glTexImage2D is inconsistent
Documentation of format argument to glTexImage2D is inconsistent
Status: NEW
Product: OpenGL
Classification: Unclassified
Component: Man Pages, Reference Card & Other Documentation
2.1
All All
: P3 normal
: ---
Assigned To: Graham Sellers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-20 10:31 PST by James Legg
Modified: 2011-02-20 10:31 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Legg 2011-02-20 10:31:18 PST
The documentation for the format parameter of glTexImage2D states:

The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA.

This doesn't include GL_DEPTH_COMPONENT.

The description section, however lists GL_DEPTH_COMPONENT as a value for format. Also the list of error conditions include a restriction on internalFormat when format is GL_DEPTH_COMPONENT, and a requirement that format is GL_DEPTH_COMPONENT when internalFormat takes certain values.