OSDN Git Service

fix some float/ubyte mistakes (Daniel Borca)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 8 Jan 2003 21:32:33 +0000 (21:32 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 8 Jan 2003 21:32:33 +0000 (21:32 +0000)
src/mesa/drivers/glide/fxdd.c
src/mesa/drivers/glide/fxdrv.h

index 35dd655..fd099e7 100644 (file)
@@ -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];
 }
 
 
index ce72d7a..c7e1b5a 100644 (file)
@@ -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 */