diff --git a/examples/osgcegui/osgcegui.cpp b/examples/osgcegui/osgcegui.cpp index 7feb33301..e746d9a2d 100644 --- a/examples/osgcegui/osgcegui.cpp +++ b/examples/osgcegui/osgcegui.cpp @@ -189,6 +189,8 @@ void CEGUIDrawable::drawImplementation(osg::State& state) const glPushAttrib(GL_ALL_ATTRIB_BITS); + state.disableAllVertexArrays(); + CEGUI::System::getSingleton().renderGUI(); glPopAttrib();