José Fonseca
fa7a051c25
sgi: Fix MSVC build.
Including windows.h was ineffective on MSVC because we define the NOGDI macro,
which skips the wingdi.h include.
Unsetting NOGDI is also a bad idea because it causes all sort of symbol
clashes with SGI code.
The real problem is that WINGDAPI was not being defined, also due to NOGDI,
so simply define it to blank if not done already. This seems to make
everybody happy.
14 years ago
Jakob Bornecrantz
fed8a07ddb
glu: Fix linux build
14 years ago
Jakob Bornecrantz
97efac09b2
glu: Clone the enviroment
14 years ago
José Fonseca
d34ddad9a5
scons: Build glu.
14 years ago
Brian Paul
988b246c47
mesa: fix mesa version string construction
Now that MESA_MINOR=10, we no longer need the extra '0' in the
version string.
15 years ago
Vinson Lee
6f6c8ec7b7
glu/sgi: Remove dead initialization in extract565rev.
15 years ago
Vinson Lee
4f6aa567c0
glu/sgi: Remove dead initialization in extract565.
15 years ago
Neil Roberts
75acb896c6
glu: Fix some compiler warnings in libtess
When compiled with the more aggressive compiler warnings such as
-Wshadow and -Wempty-body the libtess code gives a lot more
warnings. This fixes the following issues:
* The 'Swap' macro tries to combine multiple statements into one and
then consume the trailing semicolon by using if(1){/*...*/}else.
This gives warnings because the else part ends up with an empty
statement. It also seems a bit dangerous because if the semicolon
were missed then it would still be valid syntax but it would just
ignore the following statement. This patch replaces it with the more
common idiom do { /*...*/ } while(0).
* 'free' was being used as a local variable name but this shadows the
global function. This has been renamed to 'free_handle'
* TRUE and FALSE were being unconditionally defined. Although this
isn't currently a problem it seems better to guard them with #ifndef
because it's quite common for them to be defined in other headers.
https://bugs.freedesktop.org/show_bug.cgi?id=28845
Signed-off-by: Brian Paul <brianp@vmware.com>
15 years ago
Jeff Smith
fab1f07d6a
Grammar and spelling fixes
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
17 years ago
Kristian Høgsberg
44f78eb18e
Remove unused mini and mesa glu subdirectories
15 years ago
Vinson Lee
0bca812dc4
Revert "glu/sgi: Set freed pointer to NULL."
This commit breaks flightgear fgfs. A null pointer is
dereferenced in the function MakeVertex.
This reverts commit 9be414f4b9
.
15 years ago
Vinson Lee
9be414f4b9
glu/sgi: Set freed pointer to NULL.
15 years ago
Vinson Lee
e045af4146
glu/sgi: Add assert to check for null pointer dereference.
15 years ago
Vinson Lee
026d4b5b91
glu/sgi: Move initialization of members to top of Curve constructor.
This is a modification of commit 53d448657b
.
The members cpts and spts are possibly used as arguments later in
the constructor.
15 years ago
Vinson Lee
4bbcc11f43
glu/sgi: Initialize members of class Curvelist.
15 years ago
Vinson Lee
53d448657b
glu/sgi: Initialize members of class Curve.
15 years ago
Vinson Lee
9867b6eaad
glu/sgi: Initialize member of class Pool.
15 years ago
Brian Paul
2523172a5e
src/glu/mesa: fix mem leak (bug 26559)
15 years ago
Brian Paul
d4d0629fcd
src/glu/mini: fix mem leak (bug 26559)
15 years ago
Vinson Lee
ec5e54a40a
glu/sgi: Initialize members of class Curvelist.
15 years ago
Vinson Lee
d0ec18e111
glu/sgi: Initialize member of class primStream.
15 years ago
Vinson Lee
b5b1b452cd
glu/sgi: Initialize members of class Arc.
15 years ago
Vinson Lee
977fa27360
glu/sgi: Initialize member of class Bin.
15 years ago
Vinson Lee
7a593afa17
glu/sgi: Initialize member of class Uarray.
15 years ago
Vinson Lee
df8273494e
glu/sgi: Remove unnecessary headers.
15 years ago
Vinson Lee
4fe51c7447
glu/sgi: Initialize members of class Mesher.
15 years ago
Vinson Lee
1111b38a1b
glu/sgi: Initialize members of class Slicer.
15 years ago
Vinson Lee
b9bd96608c
glu/sgi: Include missing header file.
15 years ago
Vinson Lee
9e98c1fbf6
glu/sgi: Initialize members of class Renderhints.
15 years ago
Vinson Lee
a5815c36f7
glu/sgi: Initialize members of class StoredVertex.
15 years ago
Vinson Lee
61afd1158f
glu/sgi: Include missing header file.
15 years ago
Vinson Lee
f8737bda37
glu/sgi: Initialize member of class O_pwlcurve.
15 years ago
Vinson Lee
fe27b07b0f
glu/sgi: Initialize members of struct O_curve.
15 years ago
Vinson Lee
386f91eec3
glu/sgi: Initialize members of struct O_surface.
15 years ago
Vinson Lee
ba9dc26eec
glu/sgi: Initialize member of struct O_trim.
15 years ago
Vinson Lee
37e5626111
glu/sgi: Initialize member of struct Property.
15 years ago
Vinson Lee
2c64e4c50e
glu/sgi: Initialize member of struct Dlnode.
15 years ago
Vinson Lee
64a1961011
glu/sgi: Initialize members of struct O_nurbscurve.
15 years ago
Vinson Lee
a349687d49
glu/sgi: Initialize members of class Knotvector.
15 years ago
Vinson Lee
5d3d202ac9
glu/sgi: Initialize member of struct Property.
15 years ago
Vinson Lee
de95e5768b
glu/sgi: Initialize members of struct O_nurbssurface.
15 years ago
Vinson Lee
70bbe22366
glu/sgi: Silence warn_unused_result warnings.
15 years ago
Vinson Lee
97b899374c
glu/sgi: Initialize member of struct GridVertex.
15 years ago
Vinson Lee
3bcf7d7d7b
glu/sgi: Initialize member variables in class Varray.
15 years ago
Vinson Lee
a7db305c2f
glu/sgi: Initialize member of class monoChain.
15 years ago
Vinson Lee
5060fb428d
glu/sgi: Initialize members of class sampledLine.
15 years ago
Vinson Lee
495b8f8f7a
glu/sgi: Initialize members of class directedLine.
15 years ago
Vinson Lee
67a4abcc3b
glu/sgi: Fix include recursion.
arcsorter.h should not include itself.
15 years ago
Vinson Lee
261c3cd530
glu/sgi: Initialize variable in directedLine.
15 years ago
Vinson Lee
6138145b35
glu/sgi: Silence compiler warnings.
15 years ago