From 879a8bd020bbf9bf6628f7b2506fcb6486dd0be3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 29 Mar 2016 20:24:05 +0100 Subject: [PATCH] Changed the default value paramter to be consistent with the non templated version of StateSet::setTextureAttributeAndModes(..) --- include/osg/StateSet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osg/StateSet b/include/osg/StateSet index 65468328b..f73ffc14f 100644 --- a/include/osg/StateSet +++ b/include/osg/StateSet @@ -238,7 +238,7 @@ class OSG_EXPORT StateSet : public Object /** Set this StateSet to contain specified attribute and set the associated GLMode's to specified value.*/ void setTextureAttributeAndModes(unsigned int unit,StateAttribute *attribute, StateAttribute::GLModeValue value=StateAttribute::ON); - template void setTextureAttributeAndModes(unsigned int unit, const ref_ptr& attribute, StateAttribute::OverrideValue value=StateAttribute::OFF) { setTextureAttributeAndModes( unit, attribute.get(), value); } + template void setTextureAttributeAndModes(unsigned int unit, const ref_ptr& attribute, StateAttribute::OverrideValue value=StateAttribute::ON) { setTextureAttributeAndModes( unit, attribute.get(), value); } /** remove texture attribute of specified type from StateSet.*/ void removeTextureAttribute(unsigned int unit, StateAttribute::Type type);