From 51f85f4c940fc21af4ce0db38264f61f469e39bf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 11 Jul 2016 09:46:50 +0100 Subject: [PATCH] Added dirty of the vertex arrays to make sure they are uploaded when using VBO + VAO's --- src/osgViewer/StatsHandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osgViewer/StatsHandler.cpp b/src/osgViewer/StatsHandler.cpp index 450c0ade6..15bb0aea6 100644 --- a/src/osgViewer/StatsHandler.cpp +++ b/src/osgViewer/StatsHandler.cpp @@ -671,6 +671,8 @@ struct BlockDrawCallback : public virtual osg::Drawable::DrawCallback } } + vertices->dirty(); + osg::DrawArrays* drawArrays = static_cast(geom->getPrimitiveSet(0)); drawArrays->setCount(vi); @@ -841,6 +843,8 @@ protected: } } + vertices->dirty(); + _curX++; GraphUpdateCallback::_frameNumber = frameNumber; @@ -929,6 +933,8 @@ struct FrameMarkerDrawCallback : public virtual osg::Drawable::DrawCallback } } + vertices->dirty(); + drawable->drawImplementation(renderInfo); }