From ef4f5b391e560e535b25b372f797e41edeef09f1 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 5 Dec 2001 10:24:31 +0000 Subject: add inf and nan tests to swrast functions --- src/mesa/swrast/s_linetemp.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/mesa/swrast/s_linetemp.h') diff --git a/src/mesa/swrast/s_linetemp.h b/src/mesa/swrast/s_linetemp.h index 0635694340..a305a45d58 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 -- cgit v1.2.3