attempt to load the no_texture image from disk as needed. this allows gb to avoid the pink check board image that he seems to hate. With this change, he is free to change it to pink ponies or whatever else he fancies.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4575 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-01-04 22:05:47 +00:00
parent 2f62478648
commit ede02cbb91

View file

@ -173,7 +173,9 @@ void R2D_Init(void)
nogloss[i] = glossval;
nonorm[i] = normval;
}
missing_texture = R_LoadTexture8("no_texture", 16, 16, (unsigned char*)r_notexture_mip + r_notexture_mip->offsets[0], IF_NOALPHA|IF_NOGAMMA, 0);
missing_texture = R_LoadHiResTexture("no_texture", NULL, IF_NEAREST);
if (!TEXVALID(missing_texture))
missing_texture = R_LoadTexture8("no_texture", 16, 16, (unsigned char*)r_notexture_mip + r_notexture_mip->offsets[0], IF_NOALPHA|IF_NOGAMMA, 0);
missing_texture_gloss = R_LoadTexture("no_texture_gloss", 4, 4, TF_RGBA32, (unsigned char*)nogloss, IF_NOGAMMA);
missing_texture_normal = R_LoadTexture("no_texture_normal", 4, 4, TF_RGBA32, (unsigned char*)nonorm, IF_NOGAMMA);
translate_texture = r_nulltex;