From: havoc Date: Sat, 18 Feb 2012 21:52:00 +0000 (+0000) Subject: remove some undesired else's that break r_celshading and r_celoutlines X-Git-Tag: xonotic-v0.8.0~96^2~316 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9d4b72962f09d1696834b8339644c77000c9c125;p=xonotic%2Fdarkplaces.git remove some undesired else's that break r_celshading and r_celoutlines git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11700 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 31a7efc3..4a537c0a 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -901,9 +901,9 @@ qboolean R_CompileShader_CheckStaticParms(void) R_COMPILESHADER_STATICPARM_ENABLE(SHADERSTATICPARM_SHADOWMAPPCF_2); else if (r_shadow_shadowmappcf) R_COMPILESHADER_STATICPARM_ENABLE(SHADERSTATICPARM_SHADOWMAPPCF_1); - else if (r_celshading.integer) + if (r_celshading.integer) R_COMPILESHADER_STATICPARM_ENABLE(SHADERSTATICPARM_CELSHADING); - else if (r_celoutlines.integer) + if (r_celoutlines.integer) R_COMPILESHADER_STATICPARM_ENABLE(SHADERSTATICPARM_CELOUTLINES); return memcmp(r_compileshader_staticparms, r_compileshader_staticparms_save, sizeof(r_compileshader_staticparms)) != 0;