summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-09 06:06:37 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-09 06:06:37 (GMT)
commit3b2824de581d6c50df4a2ffa53e46cd13385984b (patch)
tree72d6ed23b5685f37eb043ec6cf9338b0b0a911da /src/mainwin.cc
parent33b37f342415fae6b3a14147d189fafc6815e26b (diff)
Clifford Wolf:
Switched to OpenCSG-1.3.0 for MDI support (this version does not leak GL off screen buffers ;-) git-svn-id: http://svn.clifford.at/openscad/trunk@416 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 296c417..e9bbdaa 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -1323,6 +1323,9 @@ static void renderGLviaOpenCSG(void *vp)
glew_initialized = 1;
glewInit();
}
+#ifdef ENABLE_MDI
+ OpenCSG::setContext(m->screen->opencsg_id);
+#endif
if (m->root_chain) {
GLint *shaderinfo = m->screen->shaderinfo;
if (!shaderinfo[0])
@@ -1335,9 +1338,6 @@ 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