mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 23:45:35 +00:00
Merge branch 'break_the_fall' into 'master'
Addresss GCC compiler warning See merge request OpenMW/openmw!1142
This commit is contained in:
commit
88b666ae26
1 changed files with 6 additions and 0 deletions
|
@ -145,12 +145,18 @@ namespace MWRender
|
|||
{
|
||||
case osg::Depth::LESS:
|
||||
newDepth->setFunction(osg::Depth::GREATER);
|
||||
break;
|
||||
case osg::Depth::LEQUAL:
|
||||
newDepth->setFunction(osg::Depth::GEQUAL);
|
||||
break;
|
||||
case osg::Depth::GREATER:
|
||||
newDepth->setFunction(osg::Depth::LESS);
|
||||
break;
|
||||
case osg::Depth::GEQUAL:
|
||||
newDepth->setFunction(osg::Depth::LEQUAL);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
newStateSet->setAttribute(newDepth, osg::StateAttribute::ON);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue