mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
Fix FTBFS against older versions of osg
Bring back osg version guard. Drawable::dirtyGLObjects wasn't available until OpenSceneGraph-3.5.10.
This commit is contained in:
parent
ec6451e93a
commit
42bd10f356
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
#include <osg/Version>
|
||||||
|
|
||||||
namespace SceneUtil
|
namespace SceneUtil
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -176,7 +178,9 @@ void MorphGeometry::cull(osg::NodeVisitor *nv)
|
|||||||
|
|
||||||
positionDst->dirty();
|
positionDst->dirty();
|
||||||
|
|
||||||
|
#if OSG_MIN_VERSION_REQUIRED(3, 5, 10)
|
||||||
geom.osg::Drawable::dirtyGLObjects();
|
geom.osg::Drawable::dirtyGLObjects();
|
||||||
|
#endif
|
||||||
|
|
||||||
nv->pushOntoNodePath(&geom);
|
nv->pushOntoNodePath(&geom);
|
||||||
nv->apply(geom);
|
nv->apply(geom);
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "riggeometry.hpp"
|
#include "riggeometry.hpp"
|
||||||
|
|
||||||
|
#include <osg/Version>
|
||||||
|
|
||||||
#include <components/debug/debuglog.hpp>
|
#include <components/debug/debuglog.hpp>
|
||||||
#include <osg/MatrixTransform>
|
#include <osg/MatrixTransform>
|
||||||
|
|
||||||
@ -247,7 +249,9 @@ void RigGeometry::cull(osg::NodeVisitor* nv)
|
|||||||
if (tangentDst)
|
if (tangentDst)
|
||||||
tangentDst->dirty();
|
tangentDst->dirty();
|
||||||
|
|
||||||
|
#if OSG_MIN_VERSION_REQUIRED(3, 5, 10)
|
||||||
geom.osg::Drawable::dirtyGLObjects();
|
geom.osg::Drawable::dirtyGLObjects();
|
||||||
|
#endif
|
||||||
|
|
||||||
nv->pushOntoNodePath(&geom);
|
nv->pushOntoNodePath(&geom);
|
||||||
nv->apply(geom);
|
nv->apply(geom);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user