set glDrawBuffer( GL_BACK ) in SceneView::draw() when not drawing in
stereo mode. Without this, we end up drawing to the wrong buffer when toggling stereo off.
This commit is contained in:
@@ -715,6 +715,10 @@ void SceneView::draw()
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// Need to restore draw buffer when toggling Stereo off.
|
||||
glDrawBuffer(GL_BACK);
|
||||
|
||||
_localStateSet->setAttribute(_viewport.get());
|
||||
osg::ref_ptr<osg::ColorMask> cmask = new osg::ColorMask;
|
||||
cmask->setMask(true,true,true,true);
|
||||
|
||||
Reference in New Issue
Block a user