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 година
Jakob Bornecrantz
fed8a07ddb
glu: Fix linux build
пре 14 година
Jakob Bornecrantz
97efac09b2
glu: Clone the enviroment
пре 14 година
José Fonseca
d34ddad9a5
scons: Build glu.
пре 14 година
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 година
Vinson Lee
6f6c8ec7b7
glu/sgi: Remove dead initialization in extract565rev.
пре 15 година
Vinson Lee
4f6aa567c0
glu/sgi: Remove dead initialization in extract565.
пре 15 година
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 година
Jeff Smith
fab1f07d6a
Grammar and spelling fixes
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
пре 17 година
Kristian Høgsberg
44f78eb18e
Remove unused mini and mesa glu subdirectories
пре 15 година
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 година
Vinson Lee
9be414f4b9
glu/sgi: Set freed pointer to NULL.
пре 15 година
Vinson Lee
e045af4146
glu/sgi: Add assert to check for null pointer dereference.
пре 15 година
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 година
Vinson Lee
4bbcc11f43
glu/sgi: Initialize members of class Curvelist.
пре 15 година
Vinson Lee
53d448657b
glu/sgi: Initialize members of class Curve.
пре 15 година
Vinson Lee
9867b6eaad
glu/sgi: Initialize member of class Pool.
пре 15 година
Brian Paul
2523172a5e
src/glu/mesa: fix mem leak (bug 26559)
пре 15 година
Brian Paul
d4d0629fcd
src/glu/mini: fix mem leak (bug 26559)
пре 15 година
Vinson Lee
ec5e54a40a
glu/sgi: Initialize members of class Curvelist.
пре 15 година
Vinson Lee
d0ec18e111
glu/sgi: Initialize member of class primStream.
пре 15 година
Vinson Lee
b5b1b452cd
glu/sgi: Initialize members of class Arc.
пре 15 година
Vinson Lee
977fa27360
glu/sgi: Initialize member of class Bin.
пре 15 година
Vinson Lee
7a593afa17
glu/sgi: Initialize member of class Uarray.
пре 15 година
Vinson Lee
df8273494e
glu/sgi: Remove unnecessary headers.
пре 15 година
Vinson Lee
4fe51c7447
glu/sgi: Initialize members of class Mesher.
пре 15 година
Vinson Lee
1111b38a1b
glu/sgi: Initialize members of class Slicer.
пре 15 година
Vinson Lee
b9bd96608c
glu/sgi: Include missing header file.
пре 15 година
Vinson Lee
9e98c1fbf6
glu/sgi: Initialize members of class Renderhints.
пре 15 година
Vinson Lee
a5815c36f7
glu/sgi: Initialize members of class StoredVertex.
пре 15 година
Vinson Lee
61afd1158f
glu/sgi: Include missing header file.
пре 15 година
Vinson Lee
f8737bda37
glu/sgi: Initialize member of class O_pwlcurve.
пре 15 година
Vinson Lee
fe27b07b0f
glu/sgi: Initialize members of struct O_curve.
пре 15 година
Vinson Lee
386f91eec3
glu/sgi: Initialize members of struct O_surface.
пре 15 година
Vinson Lee
ba9dc26eec
glu/sgi: Initialize member of struct O_trim.
пре 15 година
Vinson Lee
37e5626111
glu/sgi: Initialize member of struct Property.
пре 15 година
Vinson Lee
2c64e4c50e
glu/sgi: Initialize member of struct Dlnode.
пре 15 година
Vinson Lee
64a1961011
glu/sgi: Initialize members of struct O_nurbscurve.
пре 15 година
Vinson Lee
a349687d49
glu/sgi: Initialize members of class Knotvector.
пре 15 година
Vinson Lee
5d3d202ac9
glu/sgi: Initialize member of struct Property.
пре 15 година
Vinson Lee
de95e5768b
glu/sgi: Initialize members of struct O_nurbssurface.
пре 15 година
Vinson Lee
70bbe22366
glu/sgi: Silence warn_unused_result warnings.
пре 15 година
Vinson Lee
97b899374c
glu/sgi: Initialize member of struct GridVertex.
пре 15 година
Vinson Lee
3bcf7d7d7b
glu/sgi: Initialize member variables in class Varray.
пре 15 година
Vinson Lee
a7db305c2f
glu/sgi: Initialize member of class monoChain.
пре 15 година
Vinson Lee
5060fb428d
glu/sgi: Initialize members of class sampledLine.
пре 15 година
Vinson Lee
495b8f8f7a
glu/sgi: Initialize members of class directedLine.
пре 15 година
Vinson Lee
67a4abcc3b
glu/sgi: Fix include recursion.
arcsorter.h should not include itself.
пре 15 година
Vinson Lee
261c3cd530
glu/sgi: Initialize variable in directedLine.
пре 15 година
Vinson Lee
6138145b35
glu/sgi: Silence compiler warnings.
пре 15 година