diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-10-31 00:32:10 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-10-31 00:32:10 +0000 |
commit | 8973ef2cd0b0845aed5ec2c2d8d51d3762e2e2b2 (patch) | |
tree | 432a9b9fe1ecbf745b30f26ad96686a93ab7c3e5 | |
parent | 38e0d50edca119ccd58c6861158b5f76bf72c195 (diff) |
test for Inf/Nan before area==0
-rw-r--r-- | src/mesa/swrast/s_tritemp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_tritemp.h b/src/mesa/swrast/s_tritemp.h index 9730042e6d..0245a6525d 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.2.3 2002/03/01 04:25:42 brianp Exp $ */ +/* $Id: s_tritemp.h,v 1.27.2.4 2002/10/31 00:32:10 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -212,7 +212,7 @@ if (area * bf < 0.0) return; - if (area == 0.0F || IS_INF_OR_NAN(area)) + if (IS_INF_OR_NAN(area) || area == 0.0F) return; oneOverArea = 1.0F / area; |