]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
only print the "missing texture for missing shader" message for developer or Q3BSP...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 11 Oct 2007 14:06:13 +0000 (14:06 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 11 Oct 2007 14:06:13 +0000 (14:06 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7627 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index c00ad0822e84f7626598ebdfbb358442611d9fed..0c0ccbf888d2e20c3a3a821703879ae43ac7a4a4 100644 (file)
@@ -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;