Bug 93955 - glXMakeCurrent() drops the buffers of the unbound drawable
Summary: glXMakeCurrent() drops the buffers of the unbound drawable
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-01 14:49 UTC by almos
Modified: 2019-09-18 20:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
makecurrent.c (5.79 KB, text/plain)
2016-02-01 14:49 UTC, almos
Details

Description almos 2016-02-01 14:49:12 UTC
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.
Comment 1 GitLab Migration User 2019-09-18 20:25:09 UTC
-- 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.