Fix lightmap corruption that happens after a while.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6234 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
5aa018cf5b
commit
34e9917d76
1 changed files with 1 additions and 0 deletions
|
@ -1115,6 +1115,7 @@ static void Mod_LoadModelWorker (void *ctx, void *data, size_t a, size_t b)
|
||||||
// load the file
|
// load the file
|
||||||
//
|
//
|
||||||
mod->maxlod = 0;
|
mod->maxlod = 0;
|
||||||
|
mod->lightmaps.first = 0;
|
||||||
// set necessary engine flags for loading purposes
|
// set necessary engine flags for loading purposes
|
||||||
if (!strcmp(mod->publicname, "progs/player.mdl"))
|
if (!strcmp(mod->publicname, "progs/player.mdl"))
|
||||||
mod->engineflags |= MDLF_PLAYER | MDLF_DOCRC;
|
mod->engineflags |= MDLF_PLAYER | MDLF_DOCRC;
|
||||||
|
|
Loading…
Reference in a new issue