From 737da5f23ad7eb529a9831844957ff41599304d8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 Jan 2012 17:57:01 +0000 Subject: [PATCH] Made the cursor state protected. --- applications/present3D/present3D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); }