summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-23 21:34:06 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-23 21:34:06 (GMT)
commit5389107aa684ab99701e238a7297f07b35f7d521 (patch)
tree327a51e43bcb642c849c5cfafadf8e84966c662d /src/mainwin.cc
parent4f578513a0960d4f079260922cdc86de0948099c (diff)
create GLView as parent of OffscreenView and QGLView. combine setRenderer()
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index b4e1f50..54f6d37 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -1498,6 +1498,7 @@ void MainWindow::viewModeOpenCSG()
viewModeActionsUncheck();
viewActionOpenCSG->setChecked(true);
this->qglview->setRenderer(this->opencsgRenderer ? (Renderer *)this->opencsgRenderer : (Renderer *)this->thrownTogetherRenderer);
+ this->qglview->updateGL();
} else {
viewModeThrownTogether();
}
@@ -1522,6 +1523,7 @@ void MainWindow::viewModeCGALGrid()
viewActionCGALGrid->setChecked(true);
this->qglview->setShowFaces(false);
this->qglview->setRenderer(this->cgalRenderer);
+ this->qglview->updateGL();
}
#endif /* ENABLE_CGAL */
@@ -1531,6 +1533,7 @@ void MainWindow::viewModeThrownTogether()
viewModeActionsUncheck();
viewActionThrownTogether->setChecked(true);
this->qglview->setRenderer(this->thrownTogetherRenderer);
+ this->qglview->updateGL();
}
void MainWindow::viewModeShowEdges()
contact: Jan Huwald // Impressum