diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index 3a74c33725..e62bf4c2d8 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -1517,8 +1517,13 @@ void View3DInventorViewer::imageFromFramebuffer(int width, int height, int sampl // format and in the output image search for the above color and // replaces it with the color requested by the user. #if defined(HAVE_QT5_OPENGL) - //fboFormat.setInternalTextureFormat(GL_RGBA32F_ARB); - fboFormat.setInternalTextureFormat(GL_RGB32F_ARB); + if (App::GetApplication().GetParameterGroupByPath + ("User parameter:BaseApp/Preferences/Document")->GetBool("SaveThumbnailFix",false)) { + fboFormat.setInternalTextureFormat(GL_RGBA32F_ARB); + } + else { + fboFormat.setInternalTextureFormat(GL_RGB32F_ARB); + } #else //fboFormat.setInternalTextureFormat(GL_RGBA); fboFormat.setInternalTextureFormat(GL_RGB);