From cf54b4a13044a397098ae0382b29589870f07bad Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Thu, 26 Oct 2017 20:38:36 +0100 Subject: [PATCH] Prevent debug HUD geometry from being culled erroneously. --- apps/openmw/mwrender/shadow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwrender/shadow.cpp b/apps/openmw/mwrender/shadow.cpp index 2f57f6e06..b8600e211 100644 --- a/apps/openmw/mwrender/shadow.cpp +++ b/apps/openmw/mwrender/shadow.cpp @@ -63,6 +63,7 @@ namespace MWRender debugProgram->addShader(fragmentShader); debugGeometry = osg::createTexturedQuadGeometry(osg::Vec3(-1, -1, 0), osg::Vec3(2, 0, 0), osg::Vec3(0, 2, 0)); + debugGeometry->setCullingActive(false); debugCamera->addChild(debugGeometry); osg::ref_ptr stateSet = debugGeometry->getOrCreateStateSet(); stateSet->setAttributeAndModes(debugProgram, osg::StateAttribute::ON);