From daf9d64357b9b256b8eab17ebb50ca337a9164b7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 5 Aug 2006 11:12:47 +0000 Subject: [PATCH] Added disable vertex arrays. --- examples/osgcegui/osgcegui.cpp | 2 ++ 1 file changed, 2 insertions(+) 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();