mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +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
@ -145,7 +145,7 @@ namespace Terrain
|
||||
|
||||
osg::Callback* World::getHeightCullCallback(float highz, unsigned int mask)
|
||||
{
|
||||
if (!mHeightCullCallback)
|
||||
if (!mHeightCullCallback || mTerrainRoot->getNumChildren() == 0)
|
||||
return nullptr;
|
||||
|
||||
mHeightCullCallback->setHighZ(highz);
|
||||
|
Loading…
Reference in New Issue
Block a user