From f20519d35202b63a011573f130a03feb7d091de1 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 20 May 2015 22:11:25 +0200 Subject: [PATCH] + new parameter 'CoinOffscreenRenderer' to use Coin's offscreen renderer --- src/Gui/View3DInventorViewer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index dbad00912..7309cdfba 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -871,6 +871,9 @@ void View3DInventorViewer::savePicture(int w, int h, const QColor& bg, QImage& i // SoQtOffscreenRenderer won't work. In this case we try to use // Coin's implementation of the off-screen rendering. bool useCoinOffscreenRenderer = !QGLPixelBuffer::hasOpenGLPbuffers(); + useCoinOffscreenRenderer = App::GetApplication().GetParameterGroupByPath + ("User parameter:BaseApp/Preferences/Document")-> + GetBool("CoinOffscreenRenderer", useCoinOffscreenRenderer); // if no valid color use the current background bool useBackground = false;