summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-10 00:07:32 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-10 00:07:32 (GMT)
commit8b1cd86d7f57723d4102a685149364672acb6b0e (patch)
treec80bc99f02b6d1b3572c152624f49906125cce35
parentfcb4b74d9ae5d06660c82d4714dc0fb5efabf9d0 (diff)
Clifford Wolf:
Fixed OpenCSG::reset() call in MDI version (thx to Florian Kirsch for pointing that out) git-svn-id: http://svn.clifford.at/openscad/trunk@258 b57f626f-c46c-0410-a088-ec61d464b74c
-rw-r--r--mainwin.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/mainwin.cc b/mainwin.cc
index 8265b6a..b60f095 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -1241,9 +1241,6 @@ static void renderGLviaOpenCSG(void *vp)
glew_initialized = 1;
glewInit();
}
-#ifdef ENABLE_MDI
- OpenCSG::reset();
-#endif
if (m->root_chain) {
GLint *shaderinfo = m->screen->shaderinfo;
if (!shaderinfo[0])
@@ -1256,6 +1253,9 @@ static void renderGLviaOpenCSG(void *vp)
renderCSGChainviaOpenCSG(m->highlights_chain, m->viewActionShowEdges->isChecked() ? shaderinfo : NULL, true, false);
}
}
+#ifdef ENABLE_MDI
+ OpenCSG::reset();
+#endif
}
/*!
contact: Jan Huwald // Impressum