summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-12-26 08:53:07 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-12-26 08:53:07 (GMT)
commit612f04dfdf6378dcae3ca3de4d445ffbe53e1c75 (patch)
tree6fa6d93d16e2fc8dd9f249665a27d359f58856dc
parent9363b6f229a6dd1caddeeafdb908a56df019064f (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
-rw-r--r--glview.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/glview.cc b/glview.cc
index 800b704..45727cf 100644
--- a/glview.cc
+++ b/glview.cc
@@ -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"
contact: Jan Huwald // Impressum