From e772bee10b036e8df0a4a0c44a416e02ae7b1545 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jan 2003 21:32:33 +0000 Subject: [PATCH] fix some float/ubyte mistakes (Daniel Borca) --- src/mesa/drivers/glide/fxdd.c | 4 ++-- src/mesa/drivers/glide/fxdrv.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 */ -- 2.30.2