summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r200/r200_tex.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-09-17 16:12:27 -0600
committerBrian Paul <brianp@vmware.com>2011-09-20 20:17:41 -0600
commit8530d72c4e6ca8b8c741554ac446dd2ba8150e2e (patch)
treedd1ac1bfe7ae84310b46aee87367eec0ddedbc10 /src/mesa/drivers/dri/r200/r200_tex.c
parentd71c03836e7c42bb42879ed7aa6a5cdbb19cd589 (diff)
r200: use _mesa_unclamped_float_rgba_to_ubyte()
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_tex.c')
-rw-r--r--src/mesa/drivers/dri/r200/r200_tex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_tex.c b/src/mesa/drivers/dri/r200/r200_tex.c
index 7f26bfa2a29..27a7618b32b 100644
--- a/src/mesa/drivers/dri/r200/r200_tex.c
+++ b/src/mesa/drivers/dri/r200/r200_tex.c
@@ -313,7 +313,7 @@ static void r200TexEnv( struct gl_context *ctx, GLenum target,
case GL_TEXTURE_ENV_COLOR: {
GLubyte c[4];
GLuint envColor;
- UNCLAMPED_FLOAT_TO_RGBA_CHAN( c, texUnit->EnvColor );
+ _mesa_unclamped_float_rgba_to_ubyte(c, texUnit->EnvColor);
envColor = radeonPackColor( 4, c[0], c[1], c[2], c[3] );
if ( rmesa->hw.tf.cmd[TF_TFACTOR_0 + unit] != envColor ) {
R200_STATECHANGE( rmesa, tf );