Added s/getClearMask() support to osg::ClearNode, osgUtil::SceneView and the

.osg plugin.
This commit is contained in:
Robert Osfield
2005-05-18 19:55:14 +00:00
parent a83f7a245d
commit 955cc1ec2a
4 changed files with 31 additions and 11 deletions

View File

@@ -615,10 +615,7 @@ void SceneView::cullStage(const osg::Matrixd& projection,const osg::Matrixd& mod
if (clearNode->getRequiresClear())
{
renderStage->setClearColor(clearNode->getClearColor());
renderStage->setClearMask(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
// really should set clear mask here, but what to? Need
// to consider the stencil and accumulation buffers..
// will defer to later. Robert Osfield. October 2001.
renderStage->setClearMask(clearNode->getClearMask());
}
else
{