]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
always use fetch4 path for filtering if available
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Jan 2010 22:51:39 +0000 (22:51 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Jan 2010 22:51:39 +0000 (22:51 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9866 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 49f03e4e4407a692950df8aace771fdac991e8b7..07ae3e958e858ba79fdf8b4179e6b0d31d9ee07a 100644 (file)
@@ -399,13 +399,13 @@ void R_Shadow_SetShadowMode(void)
                {
                        if(r_shadow_shadowmapfilterquality < 0)
                        {
-                               if(strstr(gl_vendor, "NVIDIA")) 
+                               if(vid.support.amd_texture_texture4 || vid.support.arb_texture_gather)
+                                       r_shadow_shadowmappcf = 1;
+                               else if(strstr(gl_vendor, "NVIDIA") || strstr(gl_renderer, "Radeon HD")) 
                                {
                                        r_shadow_shadowmapsampler = vid.support.arb_shadow;
                                        r_shadow_shadowmappcf = 1;
                                }
-                               else if(vid.support.amd_texture_texture4 || vid.support.arb_texture_gather) 
-                                       r_shadow_shadowmappcf = 1;
                                else if(strstr(gl_vendor, "ATI")) 
                                        r_shadow_shadowmappcf = 1;
                                else