From: Mikko Rasa Date: Wed, 13 Oct 2021 09:28:10 +0000 (+0300) Subject: Respect enabled_methods in the Sky effect X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ed8e639ee3d03e6303df31e31625099e70f598a5;p=libs%2Fgl.git Respect enabled_methods in the Sky effect --- diff --git a/source/effects/sky.cpp b/source/effects/sky.cpp index fcb465b8..158606f8 100644 --- a/source/effects/sky.cpp +++ b/source/effects/sky.cpp @@ -131,6 +131,9 @@ void Sky::render(Renderer &renderer, Tag tag) const { renderable.render(renderer, tag); + if(!enabled_methods.count(tag)) + return; + Renderer::Push push(renderer); renderer.set_shader_program(&backdrop_shprog, &shdata);