From 4ecb2ba097e636c6f2dc172d9f25173e38cddf99 Mon Sep 17 00:00:00 2001 From: Stephane Albert <stephane.albert@c-s.fr> Date: Tue, 19 Feb 2013 12:09:10 +0100 Subject: [PATCH] ENH: Shared OpenGL contexts between quicklook view and image-model view. --- Code/Application/mvdMainWindow.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Code/Application/mvdMainWindow.cxx b/Code/Application/mvdMainWindow.cxx index ab80e61397..e310e531fd 100644 --- a/Code/Application/mvdMainWindow.cxx +++ b/Code/Application/mvdMainWindow.cxx @@ -146,10 +146,12 @@ MainWindow // // EXPERIMENTAL QUICKLOOK Widget. + assert( qobject_cast< GLImageWidget* >( centralWidget() )!=NULL ); GLImageWidget* qlWidget = new GLImageWidget( qlViewManipulator, qlModelRenderer, - this + this, + qobject_cast< GLImageWidget* >( centralWidget() ) ); // TODO: Set better minimum size for quicklook GL widget. qlWidget->setMinimumSize(100,100); -- GitLab