Summary: | glXMakeCurrent() drops the buffers of the unbound drawable | ||
---|---|---|---|
Product: | Mesa | Reporter: | almos <aaalmosss> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED MOVED | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | makecurrent.c |
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1001. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Created attachment 121440 [details] makecurrent.c As the attached code demonstrates (see the comment about issue #2), after switching to a pbuffer and back with glXMakeCurrent(), the depth and stencil buffers are uninitialized, because they have been dropped and reallocated. The new depth buffer is all zeros, and the second quad completely fails depth test. Tested with radeonsi, llvmpipe, softpipe, swrast. The demo renders perfectly with fglrx. The above results are with DRI2. With DRI3 the already rendered chessboard is also partially overwritten with noise.