]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_shadow.c
additional high quality shadowmap filter that uses the shadow sampler rather than...
[xonotic/darkplaces.git] / r_shadow.c
index 65eb096b9bef93849d35489546192c898df57fa0..02f8b073fb2a84a2d1e8b125bc03e61af747a6f0 100644 (file)
@@ -477,13 +477,12 @@ static void R_Shadow_SetShadowMode(void)
                        }
                        else 
                        {
+                r_shadow_shadowmapsampler = vid.support.arb_shadow && r_shadow_shadowmapshadowsampler;
                                switch (r_shadow_shadowmapfilterquality)
                                {
                                case 1:
-                                       r_shadow_shadowmapsampler = vid.support.arb_shadow && r_shadow_shadowmapshadowsampler;
                                        break;
                                case 2:
-                                       r_shadow_shadowmapsampler = vid.support.arb_shadow && r_shadow_shadowmapshadowsampler;
                                        r_shadow_shadowmappcf = 1;
                                        break;
                                case 3: