ParaViewFunctions: Remove warning message in ParaView when built with OpenGL back-end

Patch contributed by Bruno Santos
Resolves patch request https://bugs.openfoam.org/view.php?id=2779
This commit is contained in:
Henry Weller
2017-12-04 12:33:57 +00:00
parent 0cc047cc85
commit eab4ace820

View File

@ -413,7 +413,12 @@ configRenderingBackend()
# Choose the rendering engine
if [ -n "${RENDERING_BACKEND}" ]
then
addCMakeVariable "VTK_RENDERING_BACKEND=$RENDERING_BACKEND"
addCMakeVariable "VTK_RENDERING_BACKEND=${RENDERING_BACKEND}"
if [ "${RENDERING_BACKEND}" = "OpenGL" ]
then
addCMakeVariable "VTK_LEGACY_SILENT=ON"
fi
else
usage "*** Error: No rendering backend is defined"
fi