void PipelineTemplate::Pass::Loader::blend_predefined(const string &name)
{
- const Blend *blend = 0;
+ const Blend *bln = 0;
if(name=="alpha")
- blend = &Blend::alpha();
+ bln = &Blend::alpha();
else if(name=="additive")
- blend = &Blend::additive();
+ bln = &Blend::additive();
else if(name=="additive_alpha")
- blend = &Blend::additive_alpha();
+ bln = &Blend::additive_alpha();
else
throw key_error(name);
- obj.blend = blend;
+ obj.blend = bln;
obj.blend.keep();
}