summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/glide/fxsetup.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-11-04 20:29:04 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-11-04 20:29:04 +0000
commit8115e29ddc2ea0407c3680bcc17c845f0db86332 (patch)
tree0089ad1c666166c42b2c8f0106b4cd34c71abf0d /src/mesa/drivers/glide/fxsetup.c
parentdf45a985ed20a425c508a2a38a97f17bedd71eb5 (diff)
misc driver updates (Daniel Borca)
Diffstat (limited to 'src/mesa/drivers/glide/fxsetup.c')
-rw-r--r--src/mesa/drivers/glide/fxsetup.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/glide/fxsetup.c b/src/mesa/drivers/glide/fxsetup.c
index bf51635b31..48a1ae6926 100644
--- a/src/mesa/drivers/glide/fxsetup.c
+++ b/src/mesa/drivers/glide/fxsetup.c
@@ -1,4 +1,4 @@
-/* $Id: fxsetup.c,v 1.37 2002/06/15 03:03:10 brianp Exp $ */
+/* $Id: fxsetup.c,v 1.38 2002/11/04 20:29:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1173,7 +1173,7 @@ fxSetupBlend(GLcontext * ctx)
/************************************************************************/
void
-fxDDAlphaFunc(GLcontext * ctx, GLenum func, GLchan ref)
+fxDDAlphaFunc(GLcontext * ctx, GLenum func, GLfloat ref)
{
fxMesaContext fxMesa = (fxMesaContext) ctx->DriverCtx;
tfxUnitsState *us = &fxMesa->unitsState;
@@ -1229,8 +1229,9 @@ fxSetupAlphaTest(GLcontext * ctx)
tfxUnitsState *us = &fxMesa->unitsState;
if (us->alphaTestEnabled) {
+ GrAlpha_t ref = (GLint) (us->alphaTestRefValue * 255.0);
FX_grAlphaTestFunction(us->alphaTestFunc);
- FX_grAlphaTestReferenceValue(us->alphaTestRefValue);
+ FX_grAlphaTestReferenceValue(ref);
}
else
FX_grAlphaTestFunction(GR_CMP_ALWAYS);