From de9ce1e85f4188790696a4ead462705846ad2f3b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 3 Aug 2006 14:03:06 +0000 Subject: [PATCH] Removed debug code --- examples/osgtext/osgtext.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/examples/osgtext/osgtext.cpp b/examples/osgtext/osgtext.cpp index daa864bd5..e62645163 100644 --- a/examples/osgtext/osgtext.cpp +++ b/examples/osgtext/osgtext.cpp @@ -419,21 +419,10 @@ osg::Group* create3DText(const osg::Vec3& center,float radius) text4->setText("SCREEN"); geode->addDrawable(text4); - /////////////////////////////////////////////// - // Added to show osgText state set malfunction - osg::StateSet *textStateSet = new osg::StateSet(); - textStateSet->setMode(GL_BLEND, osg::StateAttribute::ON | osg::StateAttribute::PROTECTED); - textStateSet->setTextureMode(0, GL_TEXTURE_2D, osg::StateAttribute::ON | osg::StateAttribute::PROTECTED); - // This works: - //geode->setStateSet(textStateSet); - // This doesn't work: - text4->setStateSet(textStateSet); - osg::ShapeDrawable* shape = new osg::ShapeDrawable(new osg::Sphere(center,characterSize*0.2f)); shape->getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::ON); geode->addDrawable(shape); - osg::Group* rootNode = new osg::Group; rootNode->addChild(geode);