From 52146aa1b62edbbca3f4a22249bc724a374e3c5b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 26 May 2011 15:47:20 +0000 Subject: [PATCH] Fixed handling of changes in gl buffer object size so that when a gl buffer object is resized all the buffer data is recompiled. --- src/osg/BufferObject.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osg/BufferObject.cpp b/src/osg/BufferObject.cpp index 1bcf682da84..3aea3eaac08 100644 --- a/src/osg/BufferObject.cpp +++ b/src/osg/BufferObject.cpp @@ -187,6 +187,7 @@ void GLBufferObject::compileBuffer() { _allocatedSize = _profile._size; _extensions->glBufferData(_profile._target, _profile._size, NULL, _profile._usage); + compileAll = true; } for(BufferEntries::iterator itr = _bufferEntries.begin(); @@ -1299,7 +1300,9 @@ unsigned int BufferObject::addBufferData(BufferData* bd) _bufferDataList.push_back(bd); - //OSG_NOTICE<<"BufferObject "<