From: Mikko Rasa Date: Mon, 25 Jun 2018 21:20:02 +0000 (+0300) Subject: Fix shadowing warnings from older gcc versions X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1efd559eb32adf48200941402ccefc6b5422aa4c;p=libs%2Fgl.git Fix shadowing warnings from older gcc versions --- diff --git a/source/pipelinetemplate.cpp b/source/pipelinetemplate.cpp index f9344d3e..6fc63227 100644 --- a/source/pipelinetemplate.cpp +++ b/source/pipelinetemplate.cpp @@ -111,17 +111,17 @@ void PipelineTemplate::Pass::Loader::init() 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(); }