summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/glide
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-07-17 21:44:37 +0000
committerKeith Whitwell <[email protected]>2001-07-17 21:44:37 +0000
commit277fd2e66e0f43d415c63d140075d08b01a2870b (patch)
tree4cf563018d5c2d6f4c06f0ac17de25a134c30de8 /src/mesa/drivers/glide
parent53560311294814ae0daa8457307a2b25077bf4e9 (diff)
Fix Alan Barnett's 'try10' display list bug.
Diffstat (limited to 'src/mesa/drivers/glide')
-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 150a3f80052..57a16ee6ea3 100644
--- a/src/mesa/drivers/glide/fxtris.c
+++ b/src/mesa/drivers/glide/fxtris.c
@@ -309,10 +309,10 @@ static struct {
#define VERT_SET_RGBA( dst, f ) \
do { \
- dst->r = CLAMP( f[0], 0, 1 ) * 255.0; \
- dst->g = CLAMP( f[1], 0, 1 ) * 255.0; \
- dst->b = CLAMP( f[2], 0, 1 ) * 255.0; \
- dst->a = CLAMP( f[3], 0, 1 ) * 255.0; \
+ dst->r = (GLfloat)f[0]; \
+ dst->g = (GLfloat)f[1]; \
+ dst->b = (GLfloat)f[2]; \
+ dst->a = (GLfloat)f[3]; \
} while (0)
#define VERT_COPY_RGBA( v0, v1 ) \