mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-18 14:42:27 +00:00
silence compiler warning
This commit is contained in:
parent
7400050b38
commit
ed72f3335b
@ -145,12 +145,18 @@ namespace MWRender
|
|||||||
{
|
{
|
||||||
case osg::Depth::LESS:
|
case osg::Depth::LESS:
|
||||||
newDepth->setFunction(osg::Depth::GREATER);
|
newDepth->setFunction(osg::Depth::GREATER);
|
||||||
|
break;
|
||||||
case osg::Depth::LEQUAL:
|
case osg::Depth::LEQUAL:
|
||||||
newDepth->setFunction(osg::Depth::GEQUAL);
|
newDepth->setFunction(osg::Depth::GEQUAL);
|
||||||
|
break;
|
||||||
case osg::Depth::GREATER:
|
case osg::Depth::GREATER:
|
||||||
newDepth->setFunction(osg::Depth::LESS);
|
newDepth->setFunction(osg::Depth::LESS);
|
||||||
|
break;
|
||||||
case osg::Depth::GEQUAL:
|
case osg::Depth::GEQUAL:
|
||||||
newDepth->setFunction(osg::Depth::LEQUAL);
|
newDepth->setFunction(osg::Depth::LEQUAL);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
newStateSet->setAttribute(newDepth, osg::StateAttribute::ON);
|
newStateSet->setAttribute(newDepth, osg::StateAttribute::ON);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user