]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
better ATI detection
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 14 Jan 2012 12:18:57 +0000 (12:18 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 16 Jan 2012 09:27:26 +0000 (10:27 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11645 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3d921d293ba23dc2b73a236c6ab10faf39bc650f

r_shadow.c

index 320667dfcf557762f9988855482d53eb5af483b3..bdf4f2c5d0b0f9cdd7422f3099c88a1bb28c7325 100644 (file)
@@ -453,7 +453,7 @@ static void R_Shadow_SetShadowMode(void)
                                        r_shadow_shadowmapsampler = vid.support.arb_shadow && r_shadow_shadowmapshadowsampler;
                                        r_shadow_shadowmappcf = 1;
                                }
-                               else if(strstr(gl_vendor, "ATI")) 
+                               else if((strstr(gl_vendor, "ATI") || strstr(gl_vendor, "Advanced Micro Devices")) && !strstr(gl_renderer, "Mesa") && !strstr(gl_version, "Mesa")) 
                                        r_shadow_shadowmappcf = 1;
                                else 
                                        r_shadow_shadowmapsampler = vid.support.arb_shadow && r_shadow_shadowmapshadowsampler;