mesa: Allow querying the system FBO in GetFramebufferAttachmentParameteriv
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 15 Jun 2010 17:07:01 +0000 (13:07 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 15 Jun 2010 17:28:38 +0000 (13:28 -0400)
commit80dfec3e53fd5b5c8c31fb16376c9910258c91b0
treec62c8fb1fb8c07c10c0751ea946dde14e2a73d27
parent726f18ee695df2ac7656b2034d49fca4be98fb30
mesa: Allow querying the system FBO in GetFramebufferAttachmentParameteriv

        If the default framebuffer is bound to <target>, then
        <attachment> must be one of FRONT_LEFT, FRONT_RIGHT, BACK_LEFT,
        BACK_RIGHT, AUXi, DEPTH_BUFFER, or STENCIL_BUFFER, identifying a
        color buffer, the depth buffer, or the stencil buffer, and
        <pname> may be FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE or
        FRAMEBUFFER_ATTACHMENT_OBJECT_NAME.

as well as these <pname> values

        FRAMEBUFFER_ATTACHMENT_RED_SIZE,
        FRAMEBUFFER_ATTACHMENT_GREEN_SIZE,
        FRAMEBUFFER_ATTACHMENT_BLUE_SIZE,
        FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE,
        FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE,
        FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE,
        FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE, or
        FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING.

https://bugs.freedesktop.org/show_bug.cgi?id=28551
src/mesa/main/fbobject.c