summaryrefslogtreecommitdiff
path: root/src/mesa/main/rastpos.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>1999-11-08 15:28:08 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>1999-11-08 15:28:08 +0000
commit99f16d01dd508ccac9d37488bf83a7aed5c05832 (patch)
tree27f8875a375f92a39d82ac822a92894cdcc21db4 /src/mesa/main/rastpos.c
parent19f90e35ff1419169a2d3522e55e4de05b7ab14c (diff)
changes to silence MSVC warnings
Diffstat (limited to 'src/mesa/main/rastpos.c')
-rw-r--r--src/mesa/main/rastpos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/rastpos.c b/src/mesa/main/rastpos.c
index 217cfc0ce5e..eeca646f2f0 100644
--- a/src/mesa/main/rastpos.c
+++ b/src/mesa/main/rastpos.c
@@ -1,4 +1,4 @@
-/* $Id: rastpos.c,v 1.2 1999/10/08 09:27:11 keithw Exp $ */
+/* $Id: rastpos.c,v 1.3 1999/11/08 15:28:08 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -107,7 +107,7 @@ void gl_RasterPos4f( GLcontext *ctx,
}
/* compute raster distance */
- ctx->Current.RasterDistance =
+ ctx->Current.RasterDistance = (GLfloat)
GL_SQRT( eye[0]*eye[0] + eye[1]*eye[1] + eye[2]*eye[2] );
/* apply projection matrix: clip = Proj * eye */