X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuilders%2Fsequencebuilder.cpp;h=bf3fef42dfb82f55989a21f8c325139ee569ba7d;hb=215b633d194920cc697d68cfec201c680210b73c;hp=45d4f873b1e03a486bca93e4264028fb09cf66ec;hpb=009918e76dda88b0cb68fdaa20c63d6e952af260;p=libs%2Fgl.git diff --git a/source/builders/sequencebuilder.cpp b/source/builders/sequencebuilder.cpp index 45d4f873..bf3fef42 100644 --- a/source/builders/sequencebuilder.cpp +++ b/source/builders/sequencebuilder.cpp @@ -64,7 +64,6 @@ void SequenceBuilder::build(Sequence &sequence) const continue; Sequence::Step &step = sequence.add_step(s.tag, *renderable); - step.set_blend(s.blend); step.set_depth_test(s.depth_test); step.set_stencil_test(s.stencil_test); step.set_lighting(s.lighting); @@ -75,7 +74,7 @@ void SequenceBuilder::build(Sequence &sequence) const #endif for(const SequenceTemplate::PostProcessor &p: tmpl.get_postprocessors()) { - PostProcessor *proc = 0; + RefPtr proc = 0; if(!p.slot_name.empty()) proc = get_item(postprocessors, p.slot_name); if(proc) @@ -89,7 +88,8 @@ void SequenceBuilder::build(Sequence &sequence) const if(!debug_name.empty()) proc->set_debug_name(format("%s/%d.pproc", debug_name, index++)); #endif - sequence.add_postprocessor_owned(proc); + sequence.add_postprocessor(*proc.get()); + sequence.add_owned(proc.release()); } } }