mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-18 07:36:45 +00:00
Merge branch 'waterculling' into 'master'
Don't use height cull callback when there's no terrain See merge request OpenMW/openmw!3787
This commit is contained in:
commit
f7c819a118
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ namespace Terrain
|
||||||
|
|
||||||
osg::Callback* World::getHeightCullCallback(float highz, unsigned int mask)
|
osg::Callback* World::getHeightCullCallback(float highz, unsigned int mask)
|
||||||
{
|
{
|
||||||
if (!mHeightCullCallback)
|
if (!mHeightCullCallback || mTerrainRoot->getNumChildren() == 0)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
mHeightCullCallback->setHighZ(highz);
|
mHeightCullCallback->setHighZ(highz);
|
||||||
|
|
Loading…
Reference in a new issue