From Jannik Heller, Wrong function call in setTextureAttributeAndModes
"From I think that this piece of code in StateSet::setTextureAttributeAndModes is a copy&paste mistake: OSG_NOTICE<<"Warning: non texture attribute '"<<attribute->className()<<"' passed to setTextureAttributeAndModes(unit,attr,value), "<<std::endl; OSG_NOTICE<<" assuming setAttributeAndModes(attr,value) instead."<<std::endl; OSG_NOTICE<<" please change calling code to use appropriate call."<<std::endl; setAttribute(attribute,value); As per the warning message it should be calling setAttributeAndModes(attribute,value); ."
This commit is contained in:
parent
faea95b5fb
commit
cb2af961db
Binary file not shown.
@ -1296,7 +1296,7 @@ void StateSet::setTextureAttributeAndModes(unsigned int unit,StateAttribute *att
|
||||
OSG_NOTICE<<"Warning: non texture attribute '"<<attribute->className()<<"' passed to setTextureAttributeAndModes(unit,attr,value), "<<std::endl;
|
||||
OSG_NOTICE<<" assuming setAttributeAndModes(attr,value) instead."<<std::endl;
|
||||
OSG_NOTICE<<" please change calling code to use appropriate call."<<std::endl;
|
||||
setAttribute(attribute,value);
|
||||
setAttributeAndModes(attribute,value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user