diff options
author | Brian <[email protected]> | 2007-03-23 18:01:31 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-03-23 18:01:31 -0600 |
commit | 8e1c3bd0b4c599bae5b64cd51cec1d74266f30fb (patch) | |
tree | 445854d36005acc98e795213e5e39eb2c3fd8bba /src/mesa/drivers/x11/xmesaP.h | |
parent | 654a3084398c5ab3ac1491bcdc5703221a268d03 (diff) |
Implement alpha buffer copy for SwapBuffers().
Nicolai writes:
When the pixmap pixel format has no alpha channel, the x11 driver
(software rendering) adds a wrapped alpha channel on request.
During SwapBuffers, this alpha channel is not copied from back to
front, which means that the front buffer doesn't really contain the
contents that the back buffer previously contained.
A subsequent glReadPixels from the front buffer will return an
incorrect result. The following patch attempts to fix this.
Diffstat (limited to 'src/mesa/drivers/x11/xmesaP.h')
-rw-r--r-- | src/mesa/drivers/x11/xmesaP.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xmesaP.h b/src/mesa/drivers/x11/xmesaP.h index 5516031ffe7..85cb6b66363 100644 --- a/src/mesa/drivers/x11/xmesaP.h +++ b/src/mesa/drivers/x11/xmesaP.h @@ -224,6 +224,7 @@ struct xmesa_buffer { GLint db_mode; /* 0 = single buffered */ /* BACK_PIXMAP = use Pixmap for back buffer */ /* BACK_XIMAGE = use XImage for back buffer */ + GLboolean swAlpha; GLuint shm; /* X Shared Memory extension status: */ /* 0 = not available */ |