diff --git a/applications/present3D/present3D.cpp b/applications/present3D/present3D.cpp index 09c50c749..8337c4f6f 100644 --- a/applications/present3D/present3D.cpp +++ b/applications/present3D/present3D.cpp @@ -221,8 +221,8 @@ osg::Node* createCursorSubgraph(const std::string& filename, float size) if (image) { osg::StateSet* stateset = geom->getOrCreateStateSet(); - stateset->setTextureAttributeAndModes(0, new osg::Texture2D(image),osg::StateAttribute::ON); - stateset->setMode(GL_BLEND,osg::StateAttribute::ON); + stateset->setTextureAttributeAndModes(0, new osg::Texture2D(image),osg::StateAttribute::ON|osg::StateAttribute::PROTECTED); + stateset->setMode(GL_BLEND,osg::StateAttribute::ON|osg::StateAttribute::PROTECTED); // stateset->setMode(GL_DEPTH_TEST,osg::StateAttribute::OFF); stateset->setRenderBinDetails(1000, "DepthSortedBin"); }