mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Don't use height cull callback when there's no terrain
This commit is contained in:
parent
6ead5f9321
commit
ffa52dfe7c
@ -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