summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2002-02-15 18:50:48 +0000
committerKarl Schultz <kschultz@freedesktop.org>2002-02-15 18:50:48 +0000
commitb8b23d45524ae4e6289a738895fcb7b58c10c189 (patch)
treea8155431e9092c3c8ff07d4ef3a3e8518350a0a5
parent3245cfdf418d80ba0011b63ba5022439487c7f35 (diff)
fix casts to quiet compiler warnings.
-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 d7d99c6cc8..96d0f016c8 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -1,4 +1,4 @@
-/* $Id: texstate.c,v 1.58.2.3 2002/01/09 02:14:50 brianp Exp $ */
+/* $Id: texstate.c,v 1.58.2.4 2002/02/15 18:50:48 kschultz Exp $ */
/*
* Mesa 3-D graphics library
@@ -469,7 +469,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 );