summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/glide/fxtris.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-05-01 19:17:15 +0000
committerKeith Whitwell <[email protected]>2001-05-01 19:17:15 +0000
commitadcc2ce92bcb6469fcbf389fa19e41faa844e798 (patch)
treebf914e8d48c07c638624e2c283e91e4a03f43df4 /src/mesa/drivers/glide/fxtris.c
parent7448e33768b5052530138cd5b893245f7361662b (diff)
float color changes
Diffstat (limited to 'src/mesa/drivers/glide/fxtris.c')
-rw-r--r--src/mesa/drivers/glide/fxtris.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/glide/fxtris.c b/src/mesa/drivers/glide/fxtris.c
index ca3848df9da..5adb11e1f3f 100644
--- a/src/mesa/drivers/glide/fxtris.c
+++ b/src/mesa/drivers/glide/fxtris.c
@@ -116,10 +116,10 @@ fx_draw_tri(GLcontext * ctx, const fxVertex * v0, const fxVertex * v1,
#define FX_COLOR(vert, c) { \
GLubyte *col = c; \
- vert->v.r=UBYTE_COLOR_TO_FLOAT_255_COLOR(col[0]); \
- vert->v.g=UBYTE_COLOR_TO_FLOAT_255_COLOR(col[1]); \
- vert->v.b=UBYTE_COLOR_TO_FLOAT_255_COLOR(col[2]); \
- vert->v.a=UBYTE_COLOR_TO_FLOAT_255_COLOR(col[3]); \
+ vert->v.r = col[0] * 255; \
+ vert->v.g = col[1] * 255; \
+ vert->v.b = col[2] * 255; \
+ vert->v.a = col[3] * 255; \
}
#define FX_COPY_COLOR( dst, src ) { \