From 0cc64857648a6fa852f4a1bbbe43df5ca7f7f593 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sun, 31 May 2020 23:39:29 +0000 Subject: [PATCH] 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 --- model_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2