summaryrefslogtreecommitdiff
path: root/src/mesa/main/texstate.c
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2002-10-17 22:26:06 +0000
committerKarl Schultz <kschultz@freedesktop.org>2002-10-17 22:26:06 +0000
commit798d83cf67098a7df293c711e0d2c8c296fc4c8f (patch)
treecf89db0ab067d627d3fbb412eba713d4ae3700f5 /src/mesa/main/texstate.c
parent6afdc0bec2e75374875578375772aa7776774851 (diff)
Add casts to quiet compiler warnings.
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r--src/mesa/main/texstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index e5c82e1514..0da213404b 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -1,4 +1,4 @@
-/* $Id: texstate.c,v 1.80 2002/10/04 19:10:08 brianp Exp $ */
+/* $Id: texstate.c,v 1.81 2002/10/17 22:26:06 kschultz Exp $ */
/*
* Mesa 3-D graphics library
@@ -554,7 +554,7 @@ _mesa_TexEnviv( GLenum target, GLenum pname, const GLint *param )
p[3] = INT_TO_FLOAT( param[3] );
}
else {
- p[0] = (GLint) param[0];
+ p[0] = (GLfloat) param[0];
p[1] = p[2] = p[3] = 0; /* init to zero, just to be safe */
}
_mesa_TexEnvfv( target, pname, p );