Skip to content

Discrepancy between glGetInternalformat documentation and ARB_internalformat_query2 one #157

Description

@illwieckz

Hi! A discrepancy in OpenGL documentation was discovered:

The glGetInternalformat reference page says that it should return either GL_TRUE or GL_FALSE when queried for GL_FRAMEBUFFER_BLEND, but the ARB_internalformat_query2 extension page says it should return either GL_FULL_SUPPORT, GL_CAVEAT_SUPPORT, or GL_NONE.

If pname is GL_FRAMEBUFFER_BLEND, params is set to GL_TRUE to indicate that the internal format is supported for blending operations when attached to a framebuffer, and to GL_FALSE otherwise.
-- https://registry.khronos.org/OpenGL-Refpages/gl4/html/glGetInternalformat.xhtml

FRAMEBUFFER_BLEND: The support for rendering to the resource via framebuffer attachment when blending is enabled is returned in params. Possible values returned are FULL_SUPPORT, CAVEAT_SUPPORT, or NONE. If the resource is unsupported, NONE is returned.
-- https://registry.khronos.org/OpenGL/extensions/ARB/ARB_internalformat_query2.txt

While GL_FALSE and GL_NONE are equal (0), GL_FULL_SUPPORT (33463) and GL_TRUE (1) are not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions