summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-10-27 18:38:35 +0000
committerBrian Paul <[email protected]>2000-10-27 18:38:35 +0000
commit1c4b3f4dfbd71dfd0d414ecad1499bf44d31a919 (patch)
treeb26f689dda16085c7329b2111fd49072ae111f24 /src/mesa/main
parent7dd57a48e1cd637c8f04178a867ad642d2447f54 (diff)
restored test for __alpha in _mesa_win_fog_coords_from_z()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/fog.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/main/fog.c b/src/mesa/main/fog.c
index 0a6d565ac31..8c473b3fc7f 100644
--- a/src/mesa/main/fog.c
+++ b/src/mesa/main/fog.c
@@ -1,8 +1,8 @@
-/* $Id: fog.c,v 1.21 2000/10/27 16:44:40 keithw Exp $ */
+/* $Id: fog.c,v 1.22 2000/10/27 18:38:35 brianp Exp $ */
/*
* Mesa 3-D graphics library
- * Version: 3.3
+ * Version: 3.5
*
* Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
*
@@ -353,7 +353,8 @@ _mesa_win_fog_coords_from_z( const GLcontext *ctx,
GLfloat ndcz = ((GLfloat) z[i] - tz) * szInv;
GLfloat eyez = d / (c+ndcz);
GLfloat tmp = negDensitySquared * eyez * eyez;
-#ifdef __alpha__
+#if defined(__alpha__) || defined(__alpha)
+ /* XXX this underflow check may be needed for other systems */
if (tmp < FLT_MIN_10_EXP)
tmp = FLT_MIN_10_EXP;
#endif