From: cloudwalk Date: Sun, 31 May 2020 23:39:29 +0000 (+0000) Subject: Warn if texture is missing in Mod_Mesh_GetTexture X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0cc64857648a6fa852f4a1bbbe43df5ca7f7f593;p=xonotic%2Fdarkplaces.git Warn if texture is missing in Mod_Mesh_GetTexture git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12618 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_shared.c b/model_shared.c index d1a48dae..9a51f98c 100644 --- a/model_shared.c +++ b/model_shared.c @@ -4410,7 +4410,7 @@ texture_t *Mod_Mesh_GetTexture(dp_model_t *mod, const char *name, int defaultdra mod->data_surfaces[i].texture = mod->data_textures + (mod->data_surfaces[i].texture - oldtextures); } t = &mod->data_textures[mod->num_textures++]; - Mod_LoadTextureFromQ3Shader(mod->mempool, mod->name, t, name, false, true, defaulttexflags, defaultmaterialflags); + Mod_LoadTextureFromQ3Shader(mod->mempool, mod->name, t, name, true, true, defaulttexflags, defaultmaterialflags); t->mesh_drawflag = drawflag; t->mesh_defaulttexflags = defaulttexflags; t->mesh_defaultmaterialflags = defaultmaterialflags;