From 798d83cf67098a7df293c711e0d2c8c296fc4c8f Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Thu, 17 Oct 2002 22:26:06 +0000 Subject: Add casts to quiet compiler warnings. --- src/mesa/main/texstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/texstate.c') diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index e5c82e1514d..0da213404b9 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 ); -- cgit v1.2.3