diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-12-26 08:53:07 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-12-26 08:53:07 (GMT) |
commit | 612f04dfdf6378dcae3ca3de4d445ffbe53e1c75 (patch) | |
tree | 6fa6d93d16e2fc8dd9f249665a27d359f58856dc /glview.cc | |
parent | 9363b6f229a6dd1caddeeafdb908a56df019064f (diff) |
Clifford Wolf:
Added check for OPENSCAD_DISABLE_GL20 environment variable
git-svn-id: http://svn.clifford.at/openscad/trunk@186 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'glview.cc')
-rw-r--r-- | glview.cc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -78,7 +78,10 @@ void GLView::initializeGL() if (GLEW_OK != err) { fprintf(stderr, "GLEW Error: %s\n", glewGetErrorString(err)); } - if (glewIsSupported("GL_VERSION_2_0")) + const char *openscad_disable_gl20_env = getenv("OPENSCAD_DISABLE_GL20"); + if (openscad_disable_gl20_env && !strcmp(openscad_disable_gl20_env, "0")) + openscad_disable_gl20_env = NULL; + if (glewIsSupported("GL_VERSION_2_0") && openscad_disable_gl20_env == NULL) { const char *vs_source = "uniform float xscale, yscale;\n" |