From f4cca55a025d58f98bb59e9d658424e918266da8 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 26 Jan 2005 09:12:59 +0000 Subject: [PATCH] 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 --- r_shadow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.39.2