1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-04-15 14:42:35 +00:00

Merge pull request #2083 from AnyOldName3/fix-vao-rig-bug

Fix animation bug with VAOs
This commit is contained in:
Chris Djali 2018-12-19 00:54:52 +00:00 committed by GitHub
commit 0f9f7f0b59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

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

View File

@ -3,6 +3,8 @@
#include <stdexcept>
#include <cstdlib>
#include <osg/Version>
#include <components/debug/debuglog.hpp>
#include "skeleton.hpp"
@ -235,6 +237,10 @@ void RigGeometry::cull(osg::NodeVisitor* nv)
if (tangentDst)
tangentDst->dirty();
#if OSG_MIN_VERSION_REQUIRED(3, 5, 6)
geom.dirtyGLObjects();
#endif
nv->pushOntoNodePath(&geom);
nv->apply(geom);
nv->popFromNodePath();