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.7.0~193 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=efd86437642ce2c976572d5bc2cff2f49de81649;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 ::stable-branch::merge=9d4b72962f09d1696834b8339644c77000c9c125 --- diff --git a/gl_rmain.c b/gl_rmain.c index 59475e63..256b5e44 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;