forked from mirror/openmw-tes3mp
Attempt to fix naming conflict on windows
This commit is contained in:
parent
3d58ba7301
commit
a070551af3
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ namespace
|
||||||
return targetlevel;
|
return targetlevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
float distance(const osg::BoundingBox& box, const osg::Vec3f& v)
|
float distanceToBox(const osg::BoundingBox& box, const osg::Vec3f& v)
|
||||||
{
|
{
|
||||||
if (box.contains(v))
|
if (box.contains(v))
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -79,7 +79,7 @@ public:
|
||||||
|
|
||||||
virtual bool isSufficientDetail(QuadTreeNode* node, const osg::Vec3f& eyePoint)
|
virtual bool isSufficientDetail(QuadTreeNode* node, const osg::Vec3f& eyePoint)
|
||||||
{
|
{
|
||||||
float dist = distance(node->getBoundingBox(), eyePoint);
|
float dist = distanceToBox(node->getBoundingBox(), eyePoint);
|
||||||
int nativeLodLevel = Log2(static_cast<unsigned int>(node->getSize()/mMinSize));
|
int nativeLodLevel = Log2(static_cast<unsigned int>(node->getSize()/mMinSize));
|
||||||
int lodLevel = Log2(static_cast<unsigned int>(dist/(8192*mMinSize)));
|
int lodLevel = Log2(static_cast<unsigned int>(dist/(8192*mMinSize)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue