diff --git a/Quake/gl_vidsdl.c b/Quake/gl_vidsdl.c index 7483554ab..313be9f89 100644 --- a/Quake/gl_vidsdl.c +++ b/Quake/gl_vidsdl.c @@ -1252,10 +1252,10 @@ static void GL_Init (void) gl_version = (const char *) glGetString (GL_VERSION); glGetIntegerv (GL_NUM_EXTENSIONS, &gl_num_extensions); - Con_SafePrintf ("GL_VENDOR: %s\n", gl_vendor); + Con_SafePrintf ("GL_VENDOR: %s\n", gl_vendor); Con_SafePrintf ("GL_RENDERER: %s\n", gl_renderer); - Con_SafePrintf ("GL_VERSION: %s\n", gl_version); - + Con_SafePrintf ("GL_VERSION: %s\n", gl_version); + if (gl_version == NULL || sscanf(gl_version, "%d.%d", &gl_version_major, &gl_version_minor) < 2) { gl_version_major = 0;