From 459ae5ce64f0b62bd8d7a5719bd5f93d24e4e6eb 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 3265d528f..4213852d0 100644 --- a/include/osg/StateSet +++ b/include/osg/StateSet @@ -246,7 +246,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);