+ new parameter 'CoinOffscreenRenderer' to use Coin's offscreen renderer

This commit is contained in:
wmayer 2015-05-20 22:11:25 +02:00
parent ef610c8c96
commit f20519d352

View File

@ -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;