[Mesa-dev] [Bug 111008] glClear requires GL_DEPTH_TEST enabled to clear depth buffer

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 26 19:33:23 UTC 2019


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

            Bug ID: 111008
           Summary: glClear requires GL_DEPTH_TEST enabled to clear depth
                    buffer
           Product: Mesa
           Version: 18.3
          Hardware: Other
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: GLX
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: nathan at acmeaom.com
        QA Contact: mesa-dev at lists.freedesktop.org

AFAICT with a 3.3 core profile context, glClear should clear the depth buffer
regardless of the state of the depth test. 

>From http://docs.gl/gl4/glClear:

"The pixel ownership test, the scissor test, dithering, and the buffer
writemasks affect the operation of glClear. The scissor box bounds the cleared
region. Alpha function, blend function, logical operation, stenciling, texture
mapping, and depth-buffering are ignored by glClear." 

I see no mention of the depth test affecting glClear. And, according to Alfonse
Reinhart in this discussion thread, the depth test should not affect clear:
https://community.khronos.org/t/glclear/73899/4

Maybe I'm confused though, and disabling the depth test is somehow equivalent
to disabling the depth write mask?

Mesa 18.3.6 DRM 3.27.0 Radeon RX Vega

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190626/febf2f18/attachment.html>


More information about the mesa-dev mailing list