summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_pointtemp.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_pointtemp.h
parentaecfb51c304a6d71810ba5ae6ab9c4e344b816a9 (diff)
add inf and nan tests to swrast functions
Diffstat (limited to 'src/mesa/swrast/s_pointtemp.h')
-rw-r--r--src/mesa/swrast/s_pointtemp.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_pointtemp.h b/src/mesa/swrast/s_pointtemp.h
index 482f42b8eb6..4c843b3f84e 100644
--- a/src/mesa/swrast/s_pointtemp.h
+++ b/src/mesa/swrast/s_pointtemp.h
@@ -1,4 +1,4 @@
-/* $Id: s_pointtemp.h,v 1.10 2001/09/19 20:30:44 kschultz Exp $ */
+/* $Id: s_pointtemp.h,v 1.11 2001/12/05 10:24:31 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -119,6 +119,14 @@ NAME ( GLcontext *ctx, const SWvertex *vert )
size = ctx->Point._Size;
#endif
+ /* Cull primitives with malformed coordinates.
+ */
+ {
+ float tmp = vert->win[0] + vert->win[1];
+ if (IS_INF_OR_NAN(tmp))
+ return;
+ }
+
#if FLAGS & SPRITE
{
SWcontext *swctx = SWRAST_CONTEXT(ctx);