diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-01-02 22:05:55 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-01-02 22:05:55 +0000 |
commit | a580e1adb7c85711338c23a6703dfe82acbc8310 (patch) | |
tree | e83b0ea0993a7aa6c54337bb7434843cb21c5388 /src | |
parent | 3041d05bbcccfddba01a1eeaba01e5da0e1e99af (diff) |
missed a few color macro changes
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/api_loopback.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/main/api_loopback.c b/src/mesa/main/api_loopback.c index 7940025225..adbf015bbe 100644 --- a/src/mesa/main/api_loopback.c +++ b/src/mesa/main/api_loopback.c @@ -1,4 +1,4 @@ -/* $Id: api_loopback.c,v 1.5 2001/01/02 22:02:51 brianp Exp $ */ +/* $Id: api_loopback.c,v 1.6 2001/01/02 22:05:55 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -229,9 +229,9 @@ loopback_Color3dv( const GLdouble *v ) GLfloat r = v[0]; GLfloat g = v[1]; GLfloat b = v[2]; - FLOAT_COLOR_TO_UBYTE_COLOR(col[0], r); - FLOAT_COLOR_TO_UBYTE_COLOR(col[1], g); - FLOAT_COLOR_TO_UBYTE_COLOR(col[2], b); + UNCLAMPED_FLOAT_TO_UBYTE(col[0], r); + UNCLAMPED_FLOAT_TO_UBYTE(col[1], g); + UNCLAMPED_FLOAT_TO_UBYTE(col[2], b); col[3] = 255; COLORUBV( col ); } @@ -300,10 +300,10 @@ loopback_Color4dv( const GLdouble *v ) GLfloat g = v[1]; GLfloat b = v[2]; GLfloat a = v[3]; - FLOAT_COLOR_TO_UBYTE_COLOR(col[0], r); - FLOAT_COLOR_TO_UBYTE_COLOR(col[1], g); - FLOAT_COLOR_TO_UBYTE_COLOR(col[2], b); - FLOAT_COLOR_TO_UBYTE_COLOR(col[3], a); + UNCLAMPED_FLOAT_TO_UBYTE(col[0], r); + UNCLAMPED_FLOAT_TO_UBYTE(col[1], g); + UNCLAMPED_FLOAT_TO_UBYTE(col[2], b); + UNCLAMPED_FLOAT_TO_UBYTE(col[3], a); COLORUBV( col ); } |