wined3d: Test for "AMD" in the renderer string as well to detect AMD cards.

Specifically, the Gallium r600 driver reports "X.Org" for vendor and a string
of the form "Gallium 0.4 on AMD RV730" for the renderer.
This commit is contained in:
Henri Verbeet 2010-11-08 11:50:35 +01:00 committed by Alexandre Julliard
parent 7a64870014
commit 50b76b76cb
1 changed files with 1 additions and 0 deletions

View File

@ -1373,6 +1373,7 @@ static enum wined3d_pci_vendor wined3d_guess_card_vendor(const char *gl_vendor_s
if (strstr(gl_vendor_string, "ATI")
|| strstr(gl_vendor_string, "Advanced Micro Devices, Inc.")
|| strstr(gl_vendor_string, "X.Org R300 Project")
|| strstr(gl_renderer, "AMD")
|| strstr(gl_renderer, "R100")
|| strstr(gl_renderer, "R200")
|| strstr(gl_renderer, "R300")