[mutter] CoglGPUInfo - fix check for NVIDIA
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] CoglGPUInfo - fix check for NVIDIA
- Date: Wed, 22 Feb 2017 16:15:02 +0000 (UTC)
commit a9f139cab66b532e83fca31d35f01b1b5650ca24
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Feb 11 15:06:23 2016 -0500
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
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 8453828..23a8466 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]