Fix: unreported crash with misconfigured nvidia opengl drivers

This commit is contained in:
Inês Almeida 2015-12-13 10:35:16 +00:00
parent fa4a9c7ae6
commit 46218dc9f9
1 changed files with 3 additions and 3 deletions

View File

@ -329,8 +329,8 @@ const bool GLXEW_ARB_create_context_robustness =
version = glGetString(GL_VERSION);
if (version[0] < '2' || ((version[0] == '2') && (version[2] < '1'))) {
fprintf(stderr, "Error! Blender requires OpenGL 2.1 to run.\n");
if (!version || version[0] < '2' || ((version[0] == '2') && (version[2] < '1'))) {
fprintf(stderr, "Error! Blender requires OpenGL 2.1 to run. Try updating your drivers.\n");
fflush(stderr);
/* ugly, but we get crashes unless a whole bunch of systems are patched. */
exit(0);
@ -516,4 +516,4 @@ static GLboolean _glewSearchExtension(const char *name, const GLubyte *start, co
}
return GL_FALSE;
}
#endif /* USE_GLXEW_INIT_WORKAROUND */
#endif /* USE_GLXEW_INIT_WORKAROUND */