From bd20e4b7616b9b52ec64f1c007c369e41cdd442c Mon Sep 17 00:00:00 2001 From: keithw Date: Fri, 28 Mar 2003 12:18:46 +0000 Subject: Read alpha component from framebuffer --- xc/lib/GL/mesa/src/drv/i830/i830_span.c | 7 +------ 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3