mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-28 20:36:42 +00:00
Fix debug hud frustum outline disappearence
This commit is contained in:
parent
061fa57335
commit
7ad4882f0c
1 changed files with 1 additions and 1 deletions
|
@ -943,7 +943,7 @@ void MWShadowTechnique::cull(osgUtil::CullVisitor& cv)
|
||||||
Frustum frustum(&cv, minZNear, maxZFar);
|
Frustum frustum(&cv, minZNear, maxZFar);
|
||||||
if (_debugHud)
|
if (_debugHud)
|
||||||
{
|
{
|
||||||
osg::ref_ptr<osg::Vec3Array> vertexArray = new osg::Vec3Array(8);
|
osg::ref_ptr<osg::Vec3Array> vertexArray = new osg::Vec3Array();
|
||||||
for (osg::Vec3d &vertex : frustum.corners)
|
for (osg::Vec3d &vertex : frustum.corners)
|
||||||
vertexArray->push_back((osg::Vec3)vertex);
|
vertexArray->push_back((osg::Vec3)vertex);
|
||||||
_debugHud->setFrustumVertices(vertexArray);
|
_debugHud->setFrustumVertices(vertexArray);
|
||||||
|
|
Loading…
Reference in a new issue