diff --git a/src/osg/StateSet.cpp b/src/osg/StateSet.cpp index e89ffaafe..260057cd4 100644 --- a/src/osg/StateSet.cpp +++ b/src/osg/StateSet.cpp @@ -790,11 +790,7 @@ void StateSet::merge(const StateSet& rhs) void StateSet::setMode(StateAttribute::GLMode mode, StateAttribute::GLModeValue value) { - if (!getTextureGLModeSet().isTextureMode(mode)) - { - setMode(_modeList,mode,value); - } - else + if (getTextureGLModeSet().isTextureMode(mode)) { notify(NOTICE)<<"Warning: texture mode '"<