diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2016-02-11 15:06:23 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2017-02-21 16:25:01 -0500 |
commit | a9f139cab66b532e83fca31d35f01b1b5650ca24 (patch) | |
tree | 8a53681b7c585127fba6a96ca7ac76374187b3a6 | |
parent | 5ba38a4ab6913fc5a4005ec3195df6bff5e89821 (diff) | |
download | mutter-a9f139cab66b532e83fca31d35f01b1b5650ca24.tar.gz |
CoglGPUInfo - fix check for NVIDIA
NVIDIA drivers have a vendor of "NVIDIA Corporation" not "NVIDIA".
Check for both in case older drivers did use "NVIDIA"
https://bugzilla.gnome.org/show_bug.cgi?id=779039
-rw-r--r-- | cogl/cogl/cogl-gpu-info.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cogl/cogl/cogl-gpu-info.c b/cogl/cogl/cogl-gpu-info.c index 845382881..23a846616 100644 --- a/cogl/cogl/cogl-gpu-info.c +++ b/cogl/cogl/cogl-gpu-info.c @@ -169,7 +169,8 @@ check_qualcomm_vendor (const CoglGpuInfoStrings *strings) static CoglBool check_nvidia_vendor (const CoglGpuInfoStrings *strings) { - if (strcmp (strings->vendor_string, "NVIDIA") != 0) + if (strcmp (strings->vendor_string, "NVIDIA") != 0 && + strcmp (strings->vendor_string, "NVIDIA Corporation") != 0) return FALSE; return TRUE; |