[Xorg-commit] xc/extras/ogl-sample/main/gfx/lib/glu/libtess normal.c,1.1,1.1.4.1
Kaleb Keithley
xorg-commit at pdx.freedesktop.org
Wed May 9 17:30:30 EEST 2007
Committed by: kaleb
Update of /cvs/xorg/xc/extras/ogl-sample/main/gfx/lib/glu/libtess
In directory pdx:/home/kaleb/xorg/xc.XORG-CURRENT/extras/ogl-sample/main/gfx/lib/glu/libtess
Modified Files:
Tag: XORG-CURRENT
normal.c
Log Message:
merge most of XFree86 RC3 (4.3.99.903) from vendor branch.
bug #214
Index: normal.c
===================================================================
RCS file: /cvs/xorg/xc/extras/ogl-sample/main/gfx/lib/glu/libtess/normal.c,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -u -d -r1.1 -r1.1.4.1
--- a/normal.c 14 Nov 2003 16:48:25 -0000 1.1
+++ b/normal.c 23 Feb 2004 21:33:26 -0000 1.1.4.1
@@ -1,4 +1,4 @@
-/* $XFree86: xc/extras/ogl-sample/main/gfx/lib/glu/libtess/normal.c,v 1.3 2002/02/22 21:32:49 dawes Exp $ */
+/* $XFree86: xc/extras/ogl-sample/main/gfx/lib/glu/libtess/normal.c,v 1.4 2003/12/22 17:48:01 tsi Exp $ */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
@@ -50,6 +50,7 @@
#define Dot(u,v) (u[0]*v[0] + u[1]*v[1] + u[2]*v[2])
+#if defined(FOR_TRITE_TEST_PROGRAM) || defined(TRUE_PROJECT)
static void Normalize( GLdouble v[3] )
{
GLdouble len = v[0]*v[0] + v[1]*v[1] + v[2]*v[2];
@@ -60,6 +61,7 @@
v[1] /= len;
v[2] /= len;
}
+#endif
#define ABS(x) ((x) < 0 ? -(x) : (x))
More information about the xorg-commit
mailing list