From: havoc Date: Wed, 26 Jan 2005 09:12:59 +0000 (+0000) Subject: fix permutation failed warning to print the right thing X-Git-Tag: xonotic-v0.1.0preview~5180 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f4cca55a025d58f98bb59e9d658424e918266da8;p=xonotic%2Fdarkplaces.git fix permutation failed warning to print the right thing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4969 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 2dde1c8d..8a1693a6 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -460,7 +460,7 @@ void r_shadow_start(void) r_shadow_program_light[i] = GL_Backend_CompileProgram(vertstrings_count, vertstrings_list, fragstrings_count, fragstrings_list); if (!r_shadow_program_light[i]) { - Con_Printf("permutation %s %s %s %s failed for shader %s, some features may not work properly!\n", i & 1 ? "specular" : "", i & 1 ? "fog" : "", i & 1 ? "cubefilter" : "", i & 1 ? "offsetmapping" : "", "glsl/light"); + Con_Printf("permutation %s %s %s %s failed for shader %s, some features may not work properly!\n", i & 1 ? "specular" : "", i & 2 ? "fog" : "", i & 4 ? "cubefilter" : "", i & 8 ? "offsetmapping" : "", "glsl/light"); continue; } qglUseProgramObjectARB(r_shadow_program_light[i]);