diff --git a/engine/client/skin.c b/engine/client/skin.c index 624b205d8..bff4faffb 100644 --- a/engine/client/skin.c +++ b/engine/client/skin.c @@ -309,6 +309,9 @@ qbyte *Skin_Cache8 (skin_t *skin) Q_snprintfz (name, sizeof(name), "%s_pants", skin->name); TEXASSIGN(skin->textures.loweroverlay, R_LoadHiResTexture(name, skinpath, 0)); + if (!TEXVALID(skin->textures.upperoverlay) && !TEXVALID(skin->textures.loweroverlay)) + Con_DPrintf("skin \"%s\" has no colourmapping info\n", skin->name); + Q_snprintfz (name, sizeof(name), "%s_luma", skin->name); TEXASSIGN(skin->textures.fullbright, R_LoadHiResTexture(skin->name, skinpath, IF_NOALPHA)); Q_snprintfz (name, sizeof(name), "%s_gloss", skin->name); diff --git a/engine/gl/gl_shader.c b/engine/gl/gl_shader.c index 7773e42a0..d979362f8 100644 --- a/engine/gl/gl_shader.c +++ b/engine/gl/gl_shader.c @@ -1057,6 +1057,8 @@ static qboolean Shader_LoadPermutations(char *name, program_t *prog, char *scrip if (p & (1u<