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_aatritemp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/swrast/s_aatritemp.h') diff --git a/src/mesa/swrast/s_aatritemp.h b/src/mesa/swrast/s_aatritemp.h index 69f102858f6..dac2111051e 100644 --- a/src/mesa/swrast/s_aatritemp.h +++ b/src/mesa/swrast/s_aatritemp.h @@ -1,4 +1,4 @@ -/* $Id: s_aatritemp.h,v 1.21 2001/09/19 20:30:44 kschultz Exp $ */ +/* $Id: s_aatritemp.h,v 1.22 2001/12/05 10:24:31 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -149,7 +149,7 @@ const GLfloat area = majDx * botDy - botDx * majDy; ltor = (GLboolean) (area < 0.0F); /* Do backface culling */ - if (area * bf < 0 || area * area < .0025) + if (area * bf < 0 || area == 0 || IS_INF_OR_NAN(area)) return; } -- cgit v1.2.3