diff options
author | Brian Paul <[email protected]> | 2001-02-21 16:02:27 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-02-21 16:02:27 +0000 |
commit | abe094e4a158fcefc40eee9605d5214846881534 (patch) | |
tree | 84fbb0ed9a687f61a62980ab89a52f4676dbe984 /src/mesa/main/texstore.c | |
parent | 4eebc90a174722422daea6352d4e980bc81b4bb2 (diff) |
fixed GL_LUMINANCE_ALPHA bug in fetch_2d_texel()
Diffstat (limited to 'src/mesa/main/texstore.c')
-rw-r--r-- | src/mesa/main/texstore.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 1ba40c9822b..f1d6d105349 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -1,4 +1,4 @@ -/* $Id: texstore.c,v 1.7 2001/02/19 20:01:42 brianp Exp $ */ +/* $Id: texstore.c,v 1.8 2001/02/21 16:02:27 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -196,9 +196,9 @@ fetch_2d_texel(const struct gl_texture_image *img, { const GLchan *src = (GLchan *) img->Data + (img->Width * j + i) * 2; GLchan *rgba = (GLchan *) texel; - rgba[RCOMP] = 0; - rgba[GCOMP] = 0; - rgba[BCOMP] = 0; + rgba[RCOMP] = src[0]; + rgba[GCOMP] = src[0]; + rgba[BCOMP] = src[0]; rgba[ACOMP] = src[1]; return; } |