From: Brian Paul Date: Wed, 8 Jan 2003 21:32:33 +0000 (+0000) Subject: fix some float/ubyte mistakes (Daniel Borca) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e772bee10b036e8df0a4a0c44a416e02ae7b1545;p=mesa.git fix some float/ubyte mistakes (Daniel Borca) --- diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c index 35dd6553b8a..fd099e7e115 100644 --- a/src/mesa/drivers/glide/fxdd.c +++ b/src/mesa/drivers/glide/fxdd.c @@ -1,4 +1,4 @@ -/* $Id: fxdd.c,v 1.94 2002/11/04 20:29:04 brianp Exp $ */ +/* $Id: fxdd.c,v 1.95 2003/01/08 21:32:36 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -142,7 +142,7 @@ fxDDClearColor(GLcontext * ctx, const GLfloat color[4]) CLAMPED_FLOAT_TO_UBYTE(col[3], color[3]); fxMesa->clearC = FXCOLOR4(col); - fxMesa->clearA = color[3]; + fxMesa->clearA = col[3]; } diff --git a/src/mesa/drivers/glide/fxdrv.h b/src/mesa/drivers/glide/fxdrv.h index ce72d7acfaa..c7e1b5aa7a4 100644 --- a/src/mesa/drivers/glide/fxdrv.h +++ b/src/mesa/drivers/glide/fxdrv.h @@ -1,4 +1,4 @@ -/* $Id: fxdrv.h,v 1.55 2002/11/04 20:29:04 brianp Exp $ */ +/* $Id: fxdrv.h,v 1.56 2003/01/08 21:32:33 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -244,7 +244,7 @@ typedef struct GLboolean alphaTestEnabled; GrCmpFnc_t alphaTestFunc; - GrAlpha_t alphaTestRefValue; + GLfloat alphaTestRefValue; /* Blend function */