projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4dcdcf
)
fixed alpha channel problem in gl_blend_pixels()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 19 Aug 1999 15:48:01 +0000
(15:48 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 19 Aug 1999 15:48:01 +0000
(15:48 +0000)
src/mesa/main/blend.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/blend.c
b/src/mesa/main/blend.c
index
10119ac
..
deac05c
100644
(file)
--- a/
src/mesa/main/blend.c
+++ b/
src/mesa/main/blend.c
@@
-1,4
+1,4
@@
-/* $Id: blend.c,v 1.
1 1999/08/19 00:55:41 jtg
Exp $ */
+/* $Id: blend.c,v 1.
2 1999/08/19 15:48:01 brianp
Exp $ */
/*
* Mesa 3-D graphics library
@@
-794,16
+794,9
@@
void gl_blend_pixels( GLcontext *ctx,
/* Read pixels from current color buffer */
(*ctx->Driver.ReadRGBAPixels)( ctx, n, x, y, dest, mask );
-
if (ctx->RasterMask & ALPHABUF_BIT) {
gl_read_alpha_pixels( ctx, n, x, y, dest, mask );
}
- else {
- GLuint i;
- for (i=0; i<n; i++) {
- dest[i][ACOMP] = 255;
- }
- }
if (!ctx->Color.BlendFunc)
set_blend_function(ctx);