From: lordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Tue, 22 Jan 2002 05:33:30 +0000 (+0000)
Subject: models don't allocate a texture pool when running dedicated
X-Git-Tag: RELEASE_0_2_0_RC1~702
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a8b7e36e25bca3e3b0fbc8f7f475fb4e91292e64;p=xonotic%2Fdarkplaces.git

models don't allocate a texture pool when running dedicated


git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1382 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/model_shared.c b/model_shared.c
index 866bc948..6ed7273a 100644
--- a/model_shared.c
+++ b/model_shared.c
@@ -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);