From: divverent Date: Thu, 11 Oct 2007 14:06:13 +0000 (+0000) Subject: only print the "missing texture for missing shader" message for developer or Q3BSP... X-Git-Tag: xonotic-v0.1.0preview~2853 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a92f3832f418fdfdb7cb10dc3730591e270ef080;p=xonotic%2Fdarkplaces.git only print the "missing texture for missing shader" message for developer or Q3BSP (as other formats contain their own textures, and don't NEED the actual texture file) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7627 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_shared.c b/model_shared.c index c00ad082..0c0ccbf8 100644 --- a/model_shared.c +++ b/model_shared.c @@ -1748,7 +1748,8 @@ nothing GL_ZERO GL_ONE texture->basematerialflags |= MATERIALFLAG_WALL; texture->numskinframes = 1; if (!(texture->skinframes[0] = R_SkinFrame_LoadExternal(texture->name, TEXF_MIPMAP | TEXF_ALPHA | TEXF_PRECACHE | (r_picmipworld.integer ? TEXF_PICMIP : 0) | TEXF_COMPRESS, false))) - Con_Printf("^4%s:^7 could not load texture for missing shader ^3\"%s\"\n", loadmodel->name, texture->name); + if(developer.integer || loadmodel->type == mod_brushq3) + Con_Printf("^4%s:^7 could not load texture for missing shader ^3\"%s\"\n", loadmodel->name, texture->name); } // init the animation variables texture->currentframe = texture;