Skip to content
Snippets Groups Projects
Commit 2edd0378 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Homogenize gepetto-gui and gepetto-viewer-server regarding DISABLE_SAMPLING

parent 2a510dba
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,14 @@ namespace gepetto {
au->addCommandLineOption("--no-viewer-server", "do not start the Gepetto Viewer server");
osg::DisplaySettings* ds = osg::DisplaySettings::instance().get();
// This should not be done here. Two osg built-in way:
// - Environment variable OSG_MULTI_SAMPLES : a bit tedious
// - Command line option --samples : slight better with an alias
#ifndef DISABLE_SAMPLING
ds->setNumMultiSamples(4);
#else
ds->setNumMultiSamples(0);
#endif
ds->readCommandLine (arguments); // populate the help message.
verbose = (arguments.read("-v") || arguments.read("--verbose"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment