[Mesa-dev] [Bug 79115] New: glFramebufferRenderbuffer(GL_DRAW_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, 0) doesn't unbind stencil buffer

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 23 04:32:44 PDT 2014


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

          Priority: medium
            Bug ID: 79115
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: glFramebufferRenderbuffer(GL_DRAW_FRAMEBUFFER,
                    GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, 0)
                    doesn't unbind stencil buffer
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: jlegg at feralinteractive.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: 10.1
         Component: Mesa core
           Product: Mesa

Created attachment 99627
  --> https://bugs.freedesktop.org/attachment.cgi?id=99627&action=edit
Test case

glFramebufferRenderbuffer(GL_DRAW_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT,
GL_RENDERBUFFER, 0) should unbind both the depth and the stencil attachment.
However, when using mesa 10.1 with Intel Haswell graphics, the stencil buffer
is not unbound.

_mesa_framebuffer_renderbuffer has a special path to bind a stencil buffer when
using GL_DEPTH_STENCIL_ATTACHMENT for a non-null renderbuffer, but for a null
renderbuffer, it only calls remove_attachment with the depth attachment
returned by get_attachment. It also needs to handle the stencil buffer when
GL_DEPTH_STENCIL_ATTACHMENT is used for null renderbuffers.

I have attached a test case to demonstrate the problem. An assertion fails on
line 61 when the bug occurs.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140523/202048c0/attachment.html>


More information about the mesa-dev mailing list