summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated register in C++17HEADmasterKhem Raj2023-01-131-2/+2
| | | | | | | | | | 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>
* apple: Fix compatibility version and current version of meson build to be ↵Jeremy Huddleston Sequoia2022-06-171-0/+1
| | | | | | compatible with autotools build Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
* Check the definition instead of the extension to which it belongsNicolas Caramelli2021-06-241-1/+3
| | | | Signed-off-by: Nicolas Caramelli <caramelli.devel@gmail.com>
* Add Meson build systemDylan Baker2021-06-231-0/+116
| | | | | | | | 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.
* libutil: Include stddef.h for NULLMatt Turner2019-07-231-0/+1
| | | | | | Fixes: #5 Reviewed-by: Eric Engestrom <eric@engestrom.ch>
* Remove all uses of the register keyword.Krzysztof Kosiński2019-06-046-81/+79
| | | | This keyword no longer exists in C++17 and has long been a no-op.
* libutils/mipmap.c: Fixed possible memory leakAmarnath Valluri2016-06-101-0/+2
| | | | | | | | | | | 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>
* glu: initialize PriorityQ::order field to NULL in pqNewPriorityQ()Mike Gorchak2013-01-021-0/+1
| | | | | | | | | | | 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>
* glu: fix two Clang warningsLukas Rössler2012-05-212-2/+2
| | | | | | | | | | | | | 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>
* glu: Fix deprecated conversion from string constant to ‘char*’ warning.José Fonseca2011-11-092-2/+2
|
* glu: Fix build on mingw-w64.José Fonseca2011-08-301-0/+6
|
* sgi: Fix MSVC build.José Fonseca2011-04-272-1/+5
| | | | | | | | | | | | 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.
* glu: Fix linux buildJakob Bornecrantz2011-04-231-1/+1
|
* scons: Build glu.José Fonseca2011-04-2310-17/+45
|\
| * glu/sgi: Remove dead initialization in extract565rev.Vinson Lee2010-07-161-1/+1
| |
| * glu/sgi: Remove dead initialization in extract565.Vinson Lee2010-07-151-1/+1
| |
| * glu: Fix some compiler warnings in libtessNeil Roberts2010-06-308-13/+37
|/ | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Grammar and spelling fixesJeff Smith2010-03-122-2/+2
| | | | | Signed-off-by: Jeff Smith <whydoubt@yahoo.com> Signed-off-by: Brian Paul <brianp@vmware.com>
* Revert "glu/sgi: Set freed pointer to NULL."Vinson Lee2010-02-251-1/+0
| | | | | | | This commit breaks flightgear fgfs. A null pointer is dereferenced in the function MakeVertex. This reverts commit 9be414f4b93c763e1aee8f634a13721ae5d95fcd.
* glu/sgi: Set freed pointer to NULL.Vinson Lee2010-02-251-0/+1
|
* glu/sgi: Add assert to check for null pointer dereference.Vinson Lee2010-02-151-0/+1
|
* glu/sgi: Move initialization of members to top of Curve constructor.Vinson Lee2010-02-141-8/+6
| | | | | | | This is a modification of commit 53d448657bd300ab68b2869b2fba76a627699baf. The members cpts and spts are possibly used as arguments later in the constructor.
* glu/sgi: Initialize members of class Curvelist.Vinson Lee2010-02-141-4/+5
|
* glu/sgi: Initialize members of class Curve.Vinson Lee2010-02-141-0/+8
|
* glu/sgi: Initialize member of class Pool.Vinson Lee2010-02-141-0/+3
|
* glu/sgi: Initialize members of class Curvelist.Vinson Lee2010-02-131-0/+2
|
* glu/sgi: Initialize member of class primStream.Vinson Lee2010-02-121-0/+2
|
* glu/sgi: Initialize members of class Arc.Vinson Lee2010-02-121-0/+6
|
* glu/sgi: Initialize member of class Bin.Vinson Lee2010-02-121-0/+1
|
* glu/sgi: Initialize member of class Uarray.Vinson Lee2010-02-101-0/+1
|
* glu/sgi: Remove unnecessary headers.Vinson Lee2010-01-2811-13/+0
|
* glu/sgi: Initialize members of class Mesher.Vinson Lee2010-01-101-0/+3
|
* glu/sgi: Initialize members of class Slicer.Vinson Lee2010-01-101-0/+4
|
* glu/sgi: Include missing header file.Vinson Lee2010-01-101-0/+2
|
* glu/sgi: Initialize members of class Renderhints.Vinson Lee2010-01-101-0/+4
|
* glu/sgi: Initialize members of class StoredVertex.Vinson Lee2010-01-091-1/+1
|
* glu/sgi: Include missing header file.Vinson Lee2010-01-091-0/+1
|
* glu/sgi: Initialize member of class O_pwlcurve.Vinson Lee2010-01-091-0/+2
|
* glu/sgi: Initialize members of struct O_curve.Vinson Lee2010-01-021-1/+1
|
* glu/sgi: Initialize members of struct O_surface.Vinson Lee2010-01-021-1/+1
|
* glu/sgi: Initialize member of struct O_trim.Vinson Lee2010-01-021-1/+1
|
* glu/sgi: Initialize member of struct Property.Vinson Lee2010-01-011-1/+1
|
* glu/sgi: Initialize member of struct Dlnode.Vinson Lee2010-01-011-0/+1
|
* glu/sgi: Initialize members of struct O_nurbscurve.Vinson Lee2010-01-011-1/+1
|
* glu/sgi: Initialize members of class Knotvector.Vinson Lee2010-01-011-0/+3
|
* glu/sgi: Initialize member of struct Property.Vinson Lee2010-01-011-1/+1
|
* glu/sgi: Initialize members of struct O_nurbssurface.Vinson Lee2009-12-291-1/+1
|
* glu/sgi: Silence warn_unused_result warnings.Vinson Lee2009-12-291-9/+19
|
* glu/sgi: Initialize member of struct GridVertex.Vinson Lee2009-12-291-1/+1
|
* glu/sgi: Initialize member variables in class Varray.Vinson Lee2009-12-291-0/+8
|