From a9f139cab66b532e83fca31d35f01b1b5650ca24 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 11 Feb 2016 15:06:23 -0500 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) 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;