diff options
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 6 |
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 } /*! |