From 55f47787319501a9f530e8682db1c5180ab25c4b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 15 Nov 2016 14:52:59 +0000 Subject: [PATCH] Added usage of GLExtensions::debugObjectLabel() to GLBufferObject::compile() --- src/osg/BufferObject.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osg/BufferObject.cpp b/src/osg/BufferObject.cpp index 9e793ea44..df36f123b 100644 --- a/src/osg/BufferObject.cpp +++ b/src/osg/BufferObject.cpp @@ -190,6 +190,8 @@ void GLBufferObject::compileBuffer() _extensions->glBindBuffer(_profile._target, _glObjectID); + _extensions->debugObjectLabel(GL_BUFFER, _glObjectID, _bufferObject->getName()); + if (newTotalSize > _profile._size) { OSG_INFO<<"newTotalSize="<