Commit graph

115 commits

Author SHA1 Message Date
Jay Dolan
23010c89bc Fix glaring pointer issue in Picomodel load / free.
This one was producing 11 or so warnings.
2020-11-02 17:42:50 -05:00
Zack Middleton
7110342987 Fix over allocating vertexes for OBJ models with multiple surfaces
Loading Wavefront OBJ models in picomodel (used by radiant and q3map2)
did not reset the surface vertex index when starting a new surface. This
caused there to be unused vertexes, equal to the number of vertexes in
all previous surfaces, at the beginning of each surface. Exponential OBJ
vertex memory usage as number of surfaces increases. It did not affect
displaying or processing the surface faces.
2018-10-31 16:10:47 -05:00
Thomas Debesse
01d635a135 tools: reduce diff noise 2018-01-27 22:54:14 +01:00
rpolzer
58f0f9e557 q3map2/picomodel: remove some warnings
imported from netradiant, initial commit message:

> q3map2 is now waring free
2018-01-27 22:53:18 +01:00
Thomas Köppe
e1eeefac58 [pico] Add missing header inclusion 2018-01-22 16:52:52 +00:00
Timothee Besset
921dc5083c remove rogue INT_MIN definition 2018-01-22 08:52:06 -06:00
Timothee Besset
08b44c433d Disable the deprecated functions warning 2018-01-21 14:59:29 -06:00
Timothee Besset
e08d6b6429 Visual Studio 2017. Fixed q3map2_urt 64 bit compilation also. 2018-01-21 14:47:06 -06:00
Timothee "TTimo" Besset
943107012f
Merge pull request #564 from illwieckz/gcc8
gcc8: static_cast NULL instead of reinterpret_cast
2018-01-20 15:33:17 -06:00
Pan
189a61a9e0 Fix missing #elif 2018-01-20 12:06:23 +01:00
Thomas Debesse
38b0faf0da preproc: more unknown architecture error 2017-08-31 00:45:30 +02:00
Thomas Debesse
417032e526 bikeshedding: move some misplaced comment 2017-08-31 00:45:30 +02:00
Thomas Debesse
413564daa3 preproc: add some FreeBSD defines (path sep etc.) 2017-08-31 00:45:29 +02:00
Thomas Debesse
8d176b75c8 gcc8: static_cast NULL instead of reinterpret_cast 2017-08-30 18:16:07 +02:00
Thomas Debesse
a3773852a4 preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
Pan7
2793befffd Fix warning equality comparison with extraneous parentheses 2 2017-07-09 15:29:30 +02:00
Pan7
81a1776bbd Fix more extraneous parentheses warnings 2017-04-27 21:58:43 +02:00
Timothee Besset
fd3ec15ae4 fix compiler warning, be more legible 2017-02-25 15:11:45 -06:00
Timothee "TTimo" Besset
4a85ffff3a Merge pull request #404 from Pan7/Fixlwob
Fix gcc warning tex may be used uninitialized in this function
2017-02-25 14:59:41 -06:00
Timothee Besset
0c3d8f5f70 misc wording 2017-02-25 14:54:27 -06:00
Pan7
bb3dd7421c Fix gcc warning tex may be used uninitialized in this function 2017-02-24 15:48:12 +01:00
Pan7
3bc866b623 Don't free buffer of another scope (#401) 2017-02-21 12:45:49 -05:00
Pan7
d90ddd6cf8 Fix obj crash (#399) 2017-02-21 12:45:37 -05:00
TTimo
1d0feb0a4a Merge branch 'master' of github.com:TTimo/GtkRadiant 2017-01-01 09:08:45 -06:00
TTimo
a26c818a1e remove the old .vcproj 2017-01-01 09:08:37 -06:00
Timothee "TTimo" Besset
fe89aa3e6f Merge pull request #377 from Pan7/fixmatrix
Fix gcc warning sizeof on array function parameter src will return si…
2017-01-01 08:43:26 -06:00
Timothee "TTimo" Besset
d8480ac41c Merge pull request #376 from Pan7/m4x4
m4_submat modification
2017-01-01 08:41:38 -06:00
TTimo
d7dafaea33 tweak previous pull with an assert 2017-01-01 08:30:46 -06:00
Timothee "TTimo" Besset
d1e5cf4b65 Merge pull request #373 from Pan7/fixlwo2
Fix gcc warning i may be used uninitialized
2017-01-01 08:28:36 -06:00
Timothee "TTimo" Besset
a6d10074b7 Merge pull request #372 from Pan7/fixlwo
Fix for potentially using uninitialized variable
2017-01-01 08:24:28 -06:00
Jay Dolan
5938d4e49f Fix a handful of compiler warnings. 2016-12-31 16:02:08 -05:00
Jay Dolan
a851e037c8 This generates a different warning now, and is just wrong anyway. 2016-12-31 15:55:29 -05:00
Jay Dolan
b529282159 Fix compilation on OS X. How is this working elsewhere? 2016-12-31 15:44:18 -05:00
Christophe Mateos
c483b791b0 Aligment. 2016-12-19 23:53:11 +01:00
Christophe Mateos
2d08c0518c PicoModel Backport: Fixed compilation. 2016-12-19 23:45:54 +01:00
Timothee "TTimo" Besset
bcdcd58467 Merge pull request #387 from Mateos81/PicoModelExperiment
PicoModel lib backport from 1.5
2016-12-10 11:16:48 -06:00
Christophe Mateos
14c2c858b9 PicoModel - End of 1.5 backporting
lwo subfolder already done by @jdolan:
a269593afe (diff-584b574ac260b5150f42f60544e9266e)
2016-12-09 02:57:39 +01:00
Christophe Mateos
054cfcd15c PicoModel: Cleanup, ASE support upgrade test, uncrustify
Next to be tested is MD3...
2016-12-04 06:16:39 +01:00
Christophe Mateos
41f9d3a1e1 Ported picomodel.c from 1.5
Improvements over 1.4/1.5 are in.
2016-12-04 01:43:28 +01:00
Timothee Besset
5432b04490 update git ignores 2016-09-30 10:24:25 -05:00
Timothee Besset
cd222b3618 misc cleanup 2016-09-29 14:20:56 -05:00
Pan7
70b90a60c7 Fix gcc warning sizeof on array function parameter src will return size of float (*)[3] 2016-08-25 17:47:34 +02:00
Pan7
3c9676f428 m4_submat modification 2016-08-24 11:28:08 +02:00
Pan7
d089ba9454 Fix gcc warning shdr may be used uninitialized 2016-08-22 10:41:34 +02:00
Pan7
c346d43ae0 Fix gcc warning i may be used uninitialized 2016-08-22 08:48:01 +02:00
Pan7
282f33d813 Fix for potentially using uninitialized variable 2016-08-21 21:35:42 +02:00
Pan7
a342e2d1d1 Fix for uninitialized var warning 2016-08-20 06:59:43 +02:00
Thomas Köppe
3b2fb7f27e [unzip.c{,pp}] Change zc{alloc,free} to internal linkage 2016-08-03 15:53:59 +01:00
Timothee Besset
b36b3ba4b6 Visual Studio 2015 on debug configs too 2016-04-24 14:52:52 -05:00
Timothee Besset
5ed4d02c78 more Visual Studio 2015 conversion 2015-12-24 19:21:23 -06:00