From 0dbf44b4146ca99a602badd4c91b91c78ddf4be1 Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 11 Mar 2016 01:35:28 +0100 Subject: [PATCH] Enable vertex buffer objects in MyGUI RenderManager now that OSG 3.4 is a dependency --- components/myguiplatform/myguirendermanager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/myguiplatform/myguirendermanager.cpp b/components/myguiplatform/myguirendermanager.cpp index 0bc7b0ee1..eab7aab31 100644 --- a/components/myguiplatform/myguirendermanager.cpp +++ b/components/myguiplatform/myguirendermanager.cpp @@ -131,9 +131,8 @@ public: if(texture) state->applyTextureAttribute(0, texture); - // VBOs disabled due to crash in OSG: http://forum.openscenegraph.org/viewtopic.php?t=14909 - osg::GLBufferObject* bufferobject = 0;//state->isVertexBufferObjectSupported() ? vbo->getOrCreateGLBufferObject(state->getContextID()) : 0; - if (0)//bufferobject) + osg::GLBufferObject* bufferobject = state->isVertexBufferObjectSupported() ? vbo->getOrCreateGLBufferObject(state->getContextID()) : 0; + if (bufferobject) { state->bindVertexBufferObject(bufferobject);