diff options
author | keithw <keithw> | 2003-03-28 12:18:46 +0000 |
---|---|---|
committer | keithw <keithw> | 2003-03-28 12:18:46 +0000 |
commit | bd20e4b7616b9b52ec64f1c007c369e41cdd442c (patch) | |
tree | 7212cbc9a14b09e7b5e6046a95677b43c6b6245a | |
parent | 98c44f81043cc88ec450c9129a448fa14b53b0d5 (diff) |
Read alpha component from framebuffer
-rw-r--r-- | xc/lib/GL/mesa/src/drv/i830/i830_span.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/xc/lib/GL/mesa/src/drv/i830/i830_span.c b/xc/lib/GL/mesa/src/drv/i830/i830_span.c index be02ba7f4..34830bf58 100644 --- a/xc/lib/GL/mesa/src/drv/i830/i830_span.c +++ b/xc/lib/GL/mesa/src/drv/i830/i830_span.c @@ -205,11 +205,6 @@ do { \ #define WRITE_PIXEL(_x, _y, p) \ *(GLuint *)(buf + _x*4 + _y*pitch) = p -/* Note to Self: - * Don't read alpha from framebuffer, because its not correct. From a - * reading of the spec, this should not be the case, need to ask an - * engineer at Intel. - */ #define READ_RGBA(rgba, _x, _y) \ do { \ @@ -217,7 +212,7 @@ do { \ rgba[0] = (p >> 16) & 0xff; \ rgba[1] = (p >> 8) & 0xff; \ rgba[2] = (p >> 0) & 0xff; \ - rgba[3] = 255; \ + rgba[3] = (p >> 24) & 0xff; \ } while (0) #define TAG(x) i830##x##_8888 |