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@lists.freedesktop.org ReportedBy: eba...@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. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev