Added new clear, removeAttribute, removeMode, removeTextureAttribute and
removeTextureMode method and deprecated the setToInherit equivilants.
This commit is contained in:
@@ -54,7 +54,7 @@ void LightSource::setStateSetModes(StateSet& stateset,StateAttribute::GLModeValu
|
||||
void LightSource::setLocalStateSetModes(StateAttribute::GLModeValue value)
|
||||
{
|
||||
if (!_stateset) _stateset = new StateSet;
|
||||
_stateset->setAllToInherit();
|
||||
_stateset->clear();
|
||||
setStateSetModes(*_stateset,value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user