summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_linetemp.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-12-05 10:24:31 +0000
committerKeith Whitwell <[email protected]>2001-12-05 10:24:31 +0000
commitef4f5b391e560e535b25b372f797e41edeef09f1 (patch)
treee7da9cecd378bc946646b4211e003f0ffc39a01d /src/mesa/swrast/s_linetemp.h
parentaecfb51c304a6d71810ba5ae6ab9c4e344b816a9 (diff)
add inf and nan tests to swrast functions
Diffstat (limited to 'src/mesa/swrast/s_linetemp.h')
-rw-r--r--src/mesa/swrast/s_linetemp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_linetemp.h b/src/mesa/swrast/s_linetemp.h
index 06356943408..a305a45d58d 100644
--- a/src/mesa/swrast/s_linetemp.h
+++ b/src/mesa/swrast/s_linetemp.h
@@ -1,4 +1,4 @@
-/* $Id: s_linetemp.h,v 1.9 2001/07/13 20:07:37 brianp Exp $ */
+/* $Id: s_linetemp.h,v 1.10 2001/12/05 10:24:31 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -180,6 +180,13 @@
}
#endif
+ /* Cull primitives with malformed coordinates.
+ */
+ {
+ float tmp = vert0->win[0] + vert0->win[1] + vert1->win[0] + vert1->win[1];
+ if (IS_INF_OR_NAN(tmp))
+ return;
+ }
/*
* Despite being clipped to the view volume, the line's window coordinates