1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Fix debug hud frustum outline disappearence

This commit is contained in:
AnyOldName3 2018-11-21 23:45:47 +00:00
parent 061fa57335
commit 7ad4882f0c

View File

@ -943,7 +943,7 @@ void MWShadowTechnique::cull(osgUtil::CullVisitor& cv)
Frustum frustum(&cv, minZNear, maxZFar);
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)
vertexArray->push_back((osg::Vec3)vertex);
_debugHud->setFrustumVertices(vertexArray);