219 Commits

Author SHA1 Message Date
Eric Engestrom
a2b96c7bba glu 9.0.3 glu-9.0.3 2023-07-21 19:24:19 +01:00
Eric Engestrom
1ca1c9ae53 drop autotools 2023-07-21 18:58:52 +01:00
Khem Raj
b6c3081729 Remove deprecated register in C++17
Fixes errors like

src/libnurbs/internals/varray.cc:76:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
    ^~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-13 21:01:26 -08:00
Jeremy Huddleston Sequoia
73d7c8a9e5 apple: Fix compatibility version and current version of meson build to be compatible with autotools build
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2022-06-17 08:01:15 -07:00
Kevin Bowling
225e00a14a pkgconfig: meson build should match autotools requires 2021-07-08 22:05:12 -07:00
Kevin Bowling
f6b4103e23 pkgconfig: Drop unneeded lines from autotools build 2021-07-08 22:04:46 -07:00
Kevin Bowling
dfeb6ed02a pkgconfig: Depend on opengl when built with libglvnd 2021-07-07 22:16:12 -07:00
Matt Turner
cbbff8857e glu 9.0.2 glu-9.0.2 2021-06-24 14:30:32 -07:00
Nicolas Caramelli
fd96664b2a Check the definition instead of the extension to which it belongs
Signed-off-by: Nicolas Caramelli <caramelli.devel@gmail.com>
2021-06-24 14:23:16 -07:00
Matt Turner
a172e0aec8 Remove glu_mangle.h
Long ago when GLU lived in the Mesa repository, there was "name
mangling" support that allowed you to build Mesa and GLU with all
exported symbols' names "mangled". That is, the symbol names would
typically be prefixed with an 'm' so that they would not collide with
the system's OpenGL implementation.

When GLU was split out into its own repository in 2012 we didn't bring
over the name mangling support. No one has noticed this lack of
functionality since, to my knowledge.

Remove the name mangling header (which was unexpectedly licensed under
the GPL).
2021-06-24 13:27:56 -07:00
Dylan Baker
fb5ded2fcf Makefile: Distribute Meson files as part of the dist tarball 2021-06-23 21:04:35 -07:00
Dylan Baker
c5d21daae1 Add Meson build system
This should be on par with the autoconf build. Like autoconf it
defauilts to generating both a shared and static library. I have
intentionally not used the pkg-config template, and used Meson's
pkg-config generator instad. This provides dependency and include
tracking that would otherwise have to be done manually.
2021-06-23 21:04:35 -07:00
Dylan Baker
9552bcc128 editorconfig: Add configuration for Meson 2021-06-23 14:11:51 -07:00
Kevin Bowling
cc195a1470 build: Add support for libglvnd 2021-06-23 00:05:50 -07:00
Lucas Stach
5b9b10591b build: fix the debug parameter to properly handle --disable-debug
Right now the the enableval isn't checked, so the debug options are added
for --enable-debug and --disable-debug, which is quite surprising for a
user. Fix this to properly handle the disable case.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2020-10-08 10:13:20 +02:00
Matt Turner
dd4e18eb75 glu 9.0.1
Signed-off-by: Matt Turner <mattst88@gmail.com>
glu-9.0.1
2019-07-23 16:34:30 -07:00
Matt Turner
8e4bbf509c Switch from bz2 to xz
Signed-off-by: Matt Turner <mattst88@gmail.com>
2019-07-23 16:34:30 -07:00
Matt Turner
b293e7e843 libutil: Include stddef.h for NULL
Fixes: #5

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
2019-07-23 16:24:15 -07:00
John Hein
f959d93f1c pkgconfig: Include -I path for glu itself
Fixes: #2
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2019-07-23 16:24:09 -07:00
Krzysztof Kosiński
f9a08d7a10 Remove all uses of the register keyword.
This keyword no longer exists in C++17 and has long been a no-op.
2019-06-04 21:04:25 -07:00
Amarnath Valluri
0bf42e41c8 libutils/mipmap.c: Fixed possible memory leak
In case of malloc() failure memory allocated for both 'srcImage'
and 'dstImage' is leaked.

Patch simplified by Brian Paul.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96480
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
2016-06-10 07:26:52 -06:00
Matt Turner
069211570c Add -D(N)DEBUG to CFLAGS dependent on --enable-debug
Tested-by: Blaž Hrastnik <speed.the.bboy@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=61003
2013-02-21 20:47:25 -08:00
Mike Gorchak
bfdf99d6ff glu: initialize PriorityQ::order field to NULL in pqNewPriorityQ()
pqNewPriorityQ() function creates and setups PriorityQ structure, all
except for the field "order". It is filled later in function
pqInit(). Depending on vertices of polygon which must be tesselated
there possible following situation, pqDeletePriorityQ() is called
right after pqNewPriorityQ() function. pqNewPriorityQ() tries to free
memory using pq->order as pointer, which is unitialized at this point.

Signed-off-by: Brian Paul <brianp@vmware.com>
2013-01-02 13:50:44 -07:00
Matt Turner
030651b648 build: Put correct thing in glu.pc's Requires: glu-9.0.0 2012-09-17 11:32:14 -07:00
Matt Turner
6713b96bc2 build: Don't check for osmesa.h since it's not used 2012-09-17 11:29:25 -07:00
Matt Turner
7545544bd6 build: Fix white space 2012-09-17 11:26:06 -07:00
Matt Turner
f98fdc4d8a build: Add --enable-debug configure flag
Appends -g -O0 to CFLAGS and CXXFLAGS.
2012-08-29 09:36:53 -07:00
Matt Turner
181ad9bf4f Bump version to 9.0.0. 2012-08-28 20:53:27 -07:00
Matt Turner
8e18447045 build: Update glu.pc.in now that its out of Mesa 2012-08-28 20:53:27 -07:00
Matt Turner
2dc3faedfe built: Add EXTRA_DIST and header installation 2012-08-28 20:53:27 -07:00
Matt Turner
fffaa18655 build: Check for and add visibility compiler flags 2012-08-28 20:53:27 -07:00
Matt Turner
0c7b1419ff build: Allow linking against OSMesa instead of libGL 2012-08-28 20:53:27 -07:00
Matt Turner
b1d3e8308a Add .gitignore 2012-08-28 20:53:27 -07:00
Matt Turner
6960eeef4a build: Set AM_C* instead of CFLAGS/CPPFLAGS 2012-08-28 20:53:27 -07:00
Matt Turner
3b41134e17 build: Use LT_PREREQ/LT_INIT instead of AC_PROG_LIBTOOL 2012-08-28 20:53:27 -07:00
Matt Turner
25c6ec8728 build: Add '&component=GLU' to Bugzilla link 2012-08-28 20:53:27 -07:00
Matt Turner
02bd799e6c build: Move glu.pc from AC_CONFIG_FILES to AC_OUTPUT 2012-08-28 20:53:27 -07:00
Kenneth Graunke
8d336f8b3c Add an autotools build system for libGLU.
Now that it's split out from Mesa, we don't have the old build system.
2012-08-28 20:53:27 -07:00
Lukas Rössler
98398a3e02 glu: fix two Clang warnings
This patch removes two Clang warnings in GLU:

The first one seems to be an actual bug in mapdesc.cc: Clang complains
that sizeof(dest) will return the size of REAL*[MAXCOORDS], instead of
the intended REAL[MAXCOORDS][MAXCOORDS]. The second one is just
cosmetic because Clang doesn't like extra parentheses.

NOTE: This is a candidate for the 8.0 branch

Reviewed-by: Brian Paul <brianp@vmware.com>
2012-05-21 08:29:23 -06:00
José Fonseca
89f3a504bf glu: Fix deprecated conversion from string constant to ‘char*’ warning. 2011-11-09 10:24:37 +00:00
José Fonseca
3180913b42 glu: Fix build on mingw-w64. 2011-08-30 09:42:01 +01:00
zhigang gong
03ac87fa67 glu: Fix _GLUfuncptr typedef.
typedef void (GLAPIENTRYP _GLUfuncptr)(); causes the following warning:
function declaration isn't a prototype.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
2011-05-12 11:45:30 +01:00
José Fonseca
e21c970d96 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.
2011-04-27 19:06:07 +01:00
Jakob Bornecrantz
13f77791b2 glu: Fix linux build 2011-04-23 17:01:19 +02:00
José Fonseca
fced8d46be scons: Build glu. 2011-04-23 13:16:03 +01:00
Vinson Lee
3b56683b99 glu/sgi: Remove dead initialization in extract565rev. 2010-07-16 01:11:03 -07:00
Vinson Lee
236bebb0c3 glu/sgi: Remove dead initialization in extract565. 2010-07-15 01:42:02 -07:00
Neil Roberts
a6392e9915 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>
2010-06-30 07:59:39 -06:00
Jeff Smith
c73b73ee33 Grammar and spelling fixes
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:55:05 -07:00
Vinson Lee
7491e48f06 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 9be414f4b93c763e1aee8f634a13721ae5d95fcd.
2010-02-25 14:26:25 -08:00