From af8352762238b6c8ca0e2c0ca73eaa5287f57292 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 9 Nov 2005 09:30:16 +0000 Subject: [PATCH] Updated the bin number to be 100 for the logo overlay to force it to draw later. --- src/osgPlugins/logo/ReaderWriterLOGO.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osgPlugins/logo/ReaderWriterLOGO.cpp b/src/osgPlugins/logo/ReaderWriterLOGO.cpp index 7e632dd1a..91ceda460 100644 --- a/src/osgPlugins/logo/ReaderWriterLOGO.cpp +++ b/src/osgPlugins/logo/ReaderWriterLOGO.cpp @@ -67,7 +67,12 @@ class Logos: public osg::Drawable sset->setMode( GL_BLEND, osg::StateAttribute::ON ); sset->setMode( GL_DEPTH_TEST, osg::StateAttribute::OFF ); sset->setTextureMode( 0, GL_TEXTURE_2D, osg::StateAttribute::OFF ); +#if 1 + // for now we'll crudely set the bin number to 100 to force it to draw later and ontop of the scene + sset->setRenderBinDetails( 100 , "RenderBin" ); +#else sset->setRenderBinDetails( StateSet::TRANSPARENT_BIN + 1 , "RenderBin" ); +#endif setStateSet( sset ); viewport = new osg::Viewport; setCullCallback( new logosCullCallback );