mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Fix animation bug with VAOs
This commit is contained in:
parent
066b74eb43
commit
53188f61fc
2 changed files with 12 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
#include <osg/Version>
|
||||||
|
|
||||||
namespace SceneUtil
|
namespace SceneUtil
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -176,6 +178,10 @@ void MorphGeometry::cull(osg::NodeVisitor *nv)
|
||||||
|
|
||||||
positionDst->dirty();
|
positionDst->dirty();
|
||||||
|
|
||||||
|
#if OSG_MIN_VERSION_REQUIRED(3, 5, 6)
|
||||||
|
geom.dirtyGLObjects();
|
||||||
|
#endif
|
||||||
|
|
||||||
nv->pushOntoNodePath(&geom);
|
nv->pushOntoNodePath(&geom);
|
||||||
nv->apply(geom);
|
nv->apply(geom);
|
||||||
nv->popFromNodePath();
|
nv->popFromNodePath();
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
|
#include <osg/Version>
|
||||||
|
|
||||||
#include <components/debug/debuglog.hpp>
|
#include <components/debug/debuglog.hpp>
|
||||||
|
|
||||||
#include "skeleton.hpp"
|
#include "skeleton.hpp"
|
||||||
|
@ -235,6 +237,10 @@ void RigGeometry::cull(osg::NodeVisitor* nv)
|
||||||
if (tangentDst)
|
if (tangentDst)
|
||||||
tangentDst->dirty();
|
tangentDst->dirty();
|
||||||
|
|
||||||
|
#if OSG_MIN_VERSION_REQUIRED(3, 5, 6)
|
||||||
|
geom.dirtyGLObjects();
|
||||||
|
#endif
|
||||||
|
|
||||||
nv->pushOntoNodePath(&geom);
|
nv->pushOntoNodePath(&geom);
|
||||||
nv->apply(geom);
|
nv->apply(geom);
|
||||||
nv->popFromNodePath();
|
nv->popFromNodePath();
|
||||||
|
|
Loading…
Reference in a new issue