projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bdcfe5
)
New clipping to avoid division by zero bug.
author
Keith Whitwell
<keith@tungstengraphics.com>
Mon, 17 Apr 2000 18:18:00 +0000
(18:18 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Mon, 17 Apr 2000 18:18:00 +0000
(18:18 +0000)
src/mesa/main/clip.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/clip.c
b/src/mesa/main/clip.c
index 00cd8e32ce2c3f39cad70efd4d8a71b4a91a46df..d3d1395d26c6648865aea09a1e4ce4e76d286263 100644
(file)
--- 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