]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
make more failed skin loads Prints
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 11 Oct 2007 14:31:44 +0000 (14:31 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 11 Oct 2007 14:31:44 +0000 (14:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7629 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c
model_brush.c
model_shared.c

index b891b1faea22f1f181546bb716bdc79093aa636b..11a1f50745689579f3e8aaafdcd65056ecd906df 100644 (file)
@@ -722,7 +722,7 @@ static void Mod_BuildAliasSkinsFromSkinFiles(texture_t *skin, skinfile_t *skinfi
                                                tempskinframe = R_SkinFrame_LoadExternal(skinfileitem->replacement, (r_mipskins.integer ? TEXF_MIPMAP : 0) | TEXF_ALPHA | TEXF_PRECACHE | TEXF_PICMIP | TEXF_COMPRESS, false);
                                                if (!tempskinframe)
                                                        if (cls.state != ca_dedicated)
-                                                               Con_DPrintf("mesh \"%s\": failed to load skin #%i \"%s\"\n", meshname, i, skinfileitem->replacement);
+                                                               Con_Printf("mesh \"%s\": failed to load skin #%i \"%s\"\n", meshname, i, skinfileitem->replacement);
                                                Mod_BuildAliasSkinFromSkinFrame(skin, tempskinframe);
                                        }
                                        break;
index 4419e79293688d38650fdce33f1dd29ff0ece298..c67e956889b69d9534af1a26f4f4bb7f68305843 100644 (file)
@@ -4246,7 +4246,7 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l)
 
        c = 0;
        for (i = 0;i < count;i++, in++, out++)
-               if (Mod_LoadTextureFromQ3Shader(out, out->name, false, true, false))
+               if (!Mod_LoadTextureFromQ3Shader(out, out->name, false, true, false))
                        c++;
        if (c)
                Con_DPrintf("%s: %i textures missing shaders\n", loadmodel->name, c);
index 4bed5301494c9343e5bf1d0f6e6baf3c97e97cd6..7266fe6ca1de60391891277cb3837a0c04daff00 100644 (file)
@@ -1748,7 +1748,7 @@ 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)))
-                       if(developer.integer || loadmodel->type == mod_brushq3)
+                       if(developer.integer || q3bsp) // only the Q3BSP path provides no alternative (like loading image directly, or internal texture)
                                Con_Printf("^1%s:^7 could not load texture for missing shader ^3\"%s\"\n", loadmodel->name, texture->name);
        }
        // init the animation variables