mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 16:45:36 +00:00
Don't use height cull callback when there's no terrain
This commit is contained in:
parent
6ead5f9321
commit
ffa52dfe7c
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