From 7b9fe820a3fba3849864682fbb1cb512362934ab Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Tue, 18 Sep 2001 23:06:14 +0000 Subject: more compiler warning fixes --- src/mesa/main/state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/state.c') diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 2e1a72469d..c1d5a0dace 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -1,4 +1,4 @@ -/* $Id: state.c,v 1.68 2001/06/18 17:26:08 brianp Exp $ */ +/* $Id: state.c,v 1.69 2001/09/18 23:06:14 kschultz Exp $ */ /* * Mesa 3-D graphics library @@ -531,9 +531,9 @@ update_modelview_scale( GLcontext *ctx ) GLfloat f = m[2] * m[2] + m[6] * m[6] + m[10] * m[10]; if (f < 1e-12) f = 1.0; if (ctx->_NeedEyeCoords) - ctx->_ModelViewInvScale = 1.0/GL_SQRT(f); + ctx->_ModelViewInvScale = (GLfloat) (1.0/GL_SQRT(f)); else - ctx->_ModelViewInvScale = GL_SQRT(f); + ctx->_ModelViewInvScale = (GLfloat) GL_SQRT(f); } } -- cgit v1.2.3