From d2e62796fce16a95ef04a9fe0369fe06a5817a97 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 7 Jan 2014 18:29:04 -0600 Subject: [PATCH] Probe the GL_RENDERER string on Nvidia to grab the driver version. --- Source/Core/VideoBackends/OGL/Render.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index ea84b509d9..f0986399d3 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -334,6 +334,17 @@ void InitDriverInfo() version = 10000*major + 1000*minor + release; */ break; + case DriverDetails::VENDOR_NVIDIA: + { + int glmajor = 0; + int glminor = 0; + int glrelease = 0; + int major = 0; + int minor = 0; + sscanf(g_ogl_config.gl_renderer, "%d.%d.%d NVIDIA %d.%d", &glmajor, &glminor, &glrelease, &major, &minor); + version = 100*major + minor; + } + break; // We don't care about these default: break;