[Mesa-dev] [Bug 42487] Teapot visual artifact
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Nov 2 03:50:55 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=42487
Brian Paul <brianp at vmware.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |NOTABUG
--- Comment #3 from Brian Paul <brianp at vmware.com> 2011-11-02 10:50:55 UTC ---
(In reply to comment #2)
> I've narrowed the bug :
> the faulty command is
>
> glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE);
>
> Adding an additionnal GLUT_DEPTH param make the code works.
>
> AMD and Nvidia proprietary drivers seem to force GLUT_DEPTH in display mode
> when depth_test are enabled. I have no idea if there is a spec that tells if
> such a behavior is legit or not, I'm marking this as NEEDINFO.
I think what's really happening is you're getting a GLX visual with a depth
buffer just by luck with AMD/NVIDIA.
glxinfo will show you which visuals have a depth buffer. With the NVIDIA
driver, most visuals have a depth buffer. Probably the same thing with AMD's
driver.
If your application uses depth testing you _must_ call glutInitDisplayMode()
with GLUT_DEPTH. Similarly with stencil and accum buffers.
I think we can close this as not-a-bug.
--
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