Added to Viewer::realize() automatic setup using Keystone when available and enabled, and when no other window setup has been selected.

This commit is contained in:
Robert Osfield
2013-05-13 09:18:37 +00:00
parent 9402efe38e
commit 4e34cadee2
4 changed files with 25 additions and 8 deletions

View File

@@ -2490,8 +2490,9 @@ static const GLubyte patternCheckerboard[] = {
0xAA, 0xAA, 0xAA, 0xAA};
void View::setUpViewForStereo(osg::DisplaySettings* ds)
void View::setUpViewForStereo()
{
osg::DisplaySettings* ds = _displaySettings.valid() ? _displaySettings.get() : osg::DisplaySettings::instance().get();
if (!ds->getStereo()) return;
ds->setUseSceneViewForStereoHint(false);