From abe094e4a158fcefc40eee9605d5214846881534 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 21 Feb 2001 16:02:27 +0000 Subject: fixed GL_LUMINANCE_ALPHA bug in fetch_2d_texel() --- src/mesa/main/texstore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 1ba40c9822..f1d6d10534 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; } -- cgit v1.2.3