[Mesa-dev] [Bug 28551] New: GetFramebufferAttachmentParameteriv() should work on the onscreen framebuffer

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 15 06:09:05 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=28551

           Summary: GetFramebufferAttachmentParameteriv() should work on
                    the onscreen framebuffer
           Product: Mesa
           Version: git
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: ebassi at gmail.com


according to the ARB_framebuffer_object spec, using
glGetFramebufferAttachmentParameteriv() on GL_FRAMEBUFFER to retrieve the size
of the colors like this:

  GLenum attachment = GL_COLOR_ATTACHMENT0;
  GLenum pname = GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE;

  glGetFramebufferAttachmentParameteriv (GL_FRAMEBUFFER,
                                         attachment,
                                         pname,
                                         &red_bits);

should be functionally equivalent to:

  glGetIntegerv (GL_RED_BITS, &red_bits);

in Mesa, the former works for any FBO, but it doesn't work for the default
onscreen framebuffer.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list