From adcc2ce92bcb6469fcbf389fa19e41faa844e798 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 1 May 2001 19:17:15 +0000 Subject: float color changes --- src/mesa/drivers/glide/fxtris.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mesa/drivers/glide/fxtris.c') diff --git a/src/mesa/drivers/glide/fxtris.c b/src/mesa/drivers/glide/fxtris.c index ca3848df9d..5adb11e1f3 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 ) { \ -- cgit v1.2.3