summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_texture.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/s_texture.c')
-rw-r--r--src/mesa/swrast/s_texture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c
index 9c3e2c5b5f..39d9a9c612 100644
--- a/src/mesa/swrast/s_texture.c
+++ b/src/mesa/swrast/s_texture.c
@@ -1,4 +1,4 @@
-/* $Id: s_texture.c,v 1.38 2001/08/14 14:08:44 brianp Exp $ */
+/* $Id: s_texture.c,v 1.39 2001/09/19 20:30:44 kschultz Exp $ */
/*
* Mesa 3-D graphics library
@@ -68,7 +68,7 @@
if (S <= 0.0F) \
U = 0.0F; \
else if (S >= 1.0F) \
- U = SIZE; \
+ U = (GLfloat) SIZE; \
else \
U = S * SIZE; \
U -= 0.5F; \
@@ -97,7 +97,7 @@
if (S <= 0.0F) \
U = 0.0F; \
else if (S >= 1.0F) \
- U = SIZE; \
+ U = (GLfloat) SIZE; \
else \
U = S * SIZE; \
U -= 0.5F; \