summaryrefslogtreecommitdiff
path: root/mainwin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mainwin.cc')
-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