Fix for previous commit. I was supposed to use GL_VERSION, not GL_RENDERER.

This commit is contained in:
Ryan Houdek 2014-01-07 19:35:06 -06:00
parent d2e62796fc
commit cdf69adcb0
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ void InitDriverInfo()
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);
sscanf(g_ogl_config.gl_version, "%d.%d.%d NVIDIA %d.%d", &glmajor, &glminor, &glrelease, &major, &minor);
version = 100*major + minor;
}
break;