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

Merge branch 'fix-osg-version-check' into 'master'

Fix FTBFS against older versions of osg

See merge request OpenMW/openmw!1292
This commit is contained in:
psi29a 2021-10-14 06:02:35 +00:00
commit 4cd927b22a
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,8 @@
#include <cassert>
#include <osg/Version>
namespace SceneUtil
{
@ -176,7 +178,9 @@ void MorphGeometry::cull(osg::NodeVisitor *nv)
positionDst->dirty();
#if OSG_MIN_VERSION_REQUIRED(3, 5, 10)
geom.osg::Drawable::dirtyGLObjects();
#endif
nv->pushOntoNodePath(&geom);
nv->apply(geom);

View File

@ -1,5 +1,7 @@
#include "riggeometry.hpp"
#include <osg/Version>
#include <components/debug/debuglog.hpp>
#include <osg/MatrixTransform>
@ -247,7 +249,9 @@ void RigGeometry::cull(osg::NodeVisitor* nv)
if (tangentDst)
tangentDst->dirty();
#if OSG_MIN_VERSION_REQUIRED(3, 5, 10)
geom.osg::Drawable::dirtyGLObjects();
#endif
nv->pushOntoNodePath(&geom);
nv->apply(geom);