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

This commit is contained in:
wmayer
2015-05-20 22:11:25 +02:00
parent 6e0287ff17
commit d2740d6a7d

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;