X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fpipelinebuilder.cpp;h=51e9cc855f8b73d1cb7b4cd49f616a4cc3faea58;hp=286d6cb62f747a4d97abb366389ca01695e60ea1;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hpb=e85d8669d6c389ded738c7b536f83ea54176662f diff --git a/source/pipelinebuilder.cpp b/source/pipelinebuilder.cpp index 286d6cb6..51e9cc85 100644 --- a/source/pipelinebuilder.cpp +++ b/source/pipelinebuilder.cpp @@ -36,6 +36,7 @@ void PipelineBuilder::set_postprocessor(const string &name, PostProcessor &pproc void PipelineBuilder::build(Pipeline &pipeline) const { pipeline.set_hdr(tmpl.get_hdr()); + pipeline.set_alpha(tmpl.get_alpha()); unsigned samples = min(tmpl.get_maximum_multisample(), Renderbuffer::get_max_samples()); if(samplesslot_name.empty()) proc = get_item(postprocessors, i->slot_name); - if(!proc && i->postprocessor_template) - proc = i->postprocessor_template->create(pipeline.get_width(), pipeline.get_height()); if(proc) - pipeline.add_postprocessor_owned(proc); + pipeline.add_postprocessor(*proc); + else if(i->postprocessor_template) + { + proc = i->postprocessor_template->create(pipeline.get_width(), pipeline.get_height()); + if(proc) + pipeline.add_postprocessor_owned(proc); + } } }