]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Warn if texture is missing in Mod_Mesh_GetTexture
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 31 May 2020 23:39:29 +0000 (23:39 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 31 May 2020 23:39:29 +0000 (23:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12618 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index d1a48daee7baebdd52043ec24d26d2eeb563cf01..9a51f98c234cbb1cb8b54badfd02d4998ca9a62f 100644 (file)
@@ -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;