summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2000-04-17 18:18:00 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2000-04-17 18:18:00 +0000
commit7b5f09c7ded33ef41955f4c9fa3e35d4c34f313a (patch)
treee79a0afb4b910c0bfeb6d2acc047b3fa532055ee /src
parent4bdcfe50f8886e43714f9b7edd25cbff19e6a97d (diff)
New clipping to avoid division by zero bug.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/clip.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/clip.c b/src/mesa/main/clip.c
index 00cd8e32ce2..d3d1395d26c 100644
--- a/src/mesa/main/clip.c
+++ b/src/mesa/main/clip.c
@@ -1,4 +1,4 @@
-/* $Id: clip.c,v 1.7 2000/04/13 14:53:25 brianp Exp $ */
+/* $Id: clip.c,v 1.8 2000/04/17 18:18:00 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -302,10 +302,12 @@ GLuint gl_userclip_point( GLcontext* ctx, const GLfloat v[] )
-#if defined(__i386__)
+#if 0
#define NEGATIVE(x) ((*(int *)&x)<0)
+#define DIFFERENT_SIGNS(a,b) ((a*b) < 0)
#else
#define NEGATIVE(x) (x < 0)
+#define DIFFERENT_SIGNS(a,b) ((a*b) < 0)
#endif