summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_tritemp.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-12-05 10:22:55 +0000
committerKeith Whitwell <[email protected]>2001-12-05 10:22:55 +0000
commit51aa3d2f3000aa01bfac7a4df7bb9245dba45e59 (patch)
tree10aca8d9146f9c99b810e6e13a37437108c92c2c /src/mesa/swrast/s_tritemp.h
parent0c1f42ef2903bef2708475c735374870b7a81c5c (diff)
Add INF_OR_NAN tests to swrast functions
Diffstat (limited to 'src/mesa/swrast/s_tritemp.h')
-rw-r--r--src/mesa/swrast/s_tritemp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_tritemp.h b/src/mesa/swrast/s_tritemp.h
index 5c9d79d5f1f..ebfb324df48 100644
--- a/src/mesa/swrast/s_tritemp.h
+++ b/src/mesa/swrast/s_tritemp.h
@@ -1,4 +1,4 @@
-/* $Id: s_tritemp.h,v 1.27 2001/09/19 20:30:44 kschultz Exp $ */
+/* $Id: s_tritemp.h,v 1.27.2.1 2001/12/05 10:22:55 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -199,7 +199,7 @@
if (area * bf < 0.0)
return;
- if (area == 0.0F)
+ if (area == 0.0F || IS_INF_OR_NAN(area))
return;
oneOverArea = 1.0F / area;