diff options
author | Keith Whitwell <[email protected]> | 2003-12-09 16:14:24 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2003-12-09 16:14:24 +0000 |
commit | 9556a5286730aa6839b9aa7cbbb2fe815a318e28 (patch) | |
tree | e01d9effd7da7e8940d5ab2135477c0223e91660 /src/mesa/drivers/dri/tdfx | |
parent | 425deefdd04fbc58aa1c357697ce602ff3013516 (diff) |
Fix VERT_SET_RGBA, VERT_SET_SPEC macros to account for change to floating
point colors throughout mesa.
Diffstat (limited to 'src/mesa/drivers/dri/tdfx')
-rw-r--r-- | src/mesa/drivers/dri/tdfx/tdfx_tris.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tris.c b/src/mesa/drivers/dri/tdfx/tdfx_tris.c index 131c2f1a0e7..408682e1fac 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_tris.c +++ b/src/mesa/drivers/dri/tdfx/tdfx_tris.c @@ -327,12 +327,12 @@ static struct { #define VERTEX tdfxVertex #define TAB rast_tab -#define TDFX_COLOR( dst, src ) \ -do { \ - dst[0] = src[2]; \ - dst[1] = src[1]; \ - dst[2] = src[0]; \ - dst[3] = src[3]; \ +#define TDFX_COLOR( dst, src ) \ +do { \ + UNCLAMPED_FLOAT_TO_UBYTE((dst)[0], (src)[2]); \ + UNCLAMPED_FLOAT_TO_UBYTE((dst)[1], (src)[1]); \ + UNCLAMPED_FLOAT_TO_UBYTE((dst)[2], (src)[0]); \ + UNCLAMPED_FLOAT_TO_UBYTE((dst)[3], (src)[3]); \ } while (0) #define DEPTH_SCALE 1.0 |