]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
remove some undesired else's that break r_celshading and r_celoutlines
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Feb 2012 21:52:00 +0000 (21:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Feb 2012 21:52:00 +0000 (21:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11700 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 31a7efc31ad584cf817158673d154e6743861587..4a537c0ac7749125bc00242a42dd854937b9b9d9 100644 (file)
@@ -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;