From ede02cbb91933b094995b8c8a616192f832ee1d1 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 4 Jan 2014 22:05:47 +0000 Subject: [PATCH] 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 --- engine/client/r_2d.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/client/r_2d.c b/engine/client/r_2d.c index 09ce1a822..d73d31907 100644 --- a/engine/client/r_2d.c +++ b/engine/client/r_2d.c @@ -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;