]> de.git.xonotic.org Git - xonotic/darkplaces.git/commit
- fix SEGFAULT when a .shader file has more layers than allowed
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 11 Oct 2007 22:08:05 +0000 (22:08 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 11 Oct 2007 22:08:05 +0000 (22:08 +0000)
commit3b725b70c7c7bf9bc5de6b5d1b60609c536167e8
treeccfa09d021518041771bbe54dc2c51b620325e7f
parentbc9c528f831716fb31de0660b664b2f6f70b8e00
- fix SEGFAULT when a .shader file has more layers than allowed
- reduce number of layers from 8 to 2 to save memory (increase it later when additional layers are actually USED)
- parse ALL layers, even those behind the limit, to check for lightmap references and similar stuff
- when looking up a shader, only look through the actually DEFINED layers (not through all ALLOCATED ones), this means that the OS won't allocate pages more shaders than actually used
- increase maximum number of tcmods from 4 to 8 for Nexuiz

net: 1300MB -> 900MB vsize, and less RSS used too; so it won't swap any more on a 1GB system

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7630 d7cf8633-e32d-0410-b094-e92efae38249
model_shared.c
model_shared.h