Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInes Almeida <britalmeida@gmail.com>2015-12-13 13:35:16 +0300
committerInes Almeida <britalmeida@gmail.com>2015-12-13 13:36:52 +0300
commit46218dc9f9dde0685c3580d3f3ebb37fa0db36e9 (patch)
tree186fdd647bf9c52f0e44d1b915e49bde4b98ff7d /intern/ghost
parentfa4a9c7ae61c5fcfdb08384f6f8e28b7fe090662 (diff)
Fix: unreported crash with misconfigured nvidia opengl drivers
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_ContextGLX.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_ContextGLX.cpp b/intern/ghost/intern/GHOST_ContextGLX.cpp
index 8e46c9513aa..90d810b7986 100644
--- a/intern/ghost/intern/GHOST_ContextGLX.cpp
+++ b/intern/ghost/intern/GHOST_ContextGLX.cpp
@@ -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 */ \ No newline at end of file
+#endif /* USE_GLXEW_INIT_WORKAROUND */