]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
models don't allocate a texture pool when running dedicated
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 Jan 2002 05:33:30 +0000 (05:33 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 Jan 2002 05:33:30 +0000 (05:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1382 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 866bc9486c14ab345cd49fa50c7bf3c23057e600..6ed7273a6fea804af0155977e4c74c4c8b061dc9 100644 (file)
@@ -168,7 +168,8 @@ static model_t *Mod_LoadModel (model_t *mod, qboolean crash, qboolean checkdisk,
        // all models use memory, so allocate a memory pool
        mod->mempool = Mem_AllocPool(mod->name);
        // all models load textures, so allocate a texture pool
-       mod->texturepool = R_AllocTexturePool();
+       if (cls.state != ca_dedicated)
+               mod->texturepool = R_AllocTexturePool();
 
        // call the apropriate loader
             if (!memcmp(buf, "IDPO"    , 4)) Mod_LoadAliasModel  (mod, buf);