diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-02-23 21:34:06 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-02-23 21:34:06 (GMT) |
commit | 5389107aa684ab99701e238a7297f07b35f7d521 (patch) | |
tree | 327a51e43bcb642c849c5cfafadf8e84966c662d /src/qglview.cc | |
parent | 4f578513a0960d4f079260922cdc86de0948099c (diff) |
create GLView as parent of OffscreenView and QGLView. combine setRenderer()
Diffstat (limited to 'src/qglview.cc')
-rw-r--r-- | src/qglview.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/qglview.cc b/src/qglview.cc index 0afaa4b..7b193ec 100644 --- a/src/qglview.cc +++ b/src/qglview.cc @@ -59,7 +59,7 @@ #define FAR_FAR_AWAY 100000.0 -QGLView::QGLView(QWidget *parent) : QGLWidget(parent), renderer(NULL) +QGLView::QGLView(QWidget *parent) : QGLWidget(parent) { init(); } @@ -113,12 +113,6 @@ void QGLView::init() #endif } -void QGLView::setRenderer(Renderer *r) -{ - this->renderer = r; - if (r) updateGL(); // Let the last image stay, e.g. to avoid animation flickering -} - void QGLView::initializeGL() { glEnable(GL_DEPTH_TEST); |