diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2001-12-05 10:24:31 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2001-12-05 10:24:31 +0000 |
commit | ef4f5b391e560e535b25b372f797e41edeef09f1 (patch) | |
tree | e7da9cecd378bc946646b4211e003f0ffc39a01d /src/mesa/swrast/s_aalinetemp.h | |
parent | aecfb51c304a6d71810ba5ae6ab9c4e344b816a9 (diff) |
add inf and nan tests to swrast functions
Diffstat (limited to 'src/mesa/swrast/s_aalinetemp.h')
-rw-r--r-- | src/mesa/swrast/s_aalinetemp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_aalinetemp.h b/src/mesa/swrast/s_aalinetemp.h index 2d8f8492e0..f645e55241 100644 --- a/src/mesa/swrast/s_aalinetemp.h +++ b/src/mesa/swrast/s_aalinetemp.h @@ -1,4 +1,4 @@ -/* $Id: s_aalinetemp.h,v 1.14 2001/09/19 20:30:44 kschultz Exp $ */ +/* $Id: s_aalinetemp.h,v 1.15 2001/12/05 10:24:31 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -162,7 +162,7 @@ NAME(line)(GLcontext *ctx, const SWvertex *v0, const SWvertex *v1) line.len = (GLfloat) sqrt(line.dx * line.dx + line.dy * line.dy); line.halfWidth = 0.5F * ctx->Line.Width; - if (line.len == 0.0) + if (line.len == 0.0 || IS_INF_OR_NAN(line.len)) return; line.xAdj = line.dx / line.len * line.halfWidth; |