Skip to content

Commit

Permalink
Enable vertex buffer objects in MyGUI RenderManager now that OSG 3.4 …
Browse files Browse the repository at this point in the history
…is a dependency
  • Loading branch information
scrawl committed Mar 11, 2016
1 parent 3f08cbf commit 0dbf44b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/myguiplatform/myguirendermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ class Drawable : public osg::Drawable {
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);

Expand Down

0 comments on commit 0dbf44b

Please sign in to comment.