]> git.tdb.fi Git - libs/gl.git/commitdiff
Respect enabled_methods in the Sky effect
authorMikko Rasa <tdb@tdb.fi>
Wed, 13 Oct 2021 09:28:10 +0000 (12:28 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 13 Oct 2021 09:28:10 +0000 (12:28 +0300)
source/effects/sky.cpp

index fcb465b8bb71960fc480086ff263baeb73119fd7..158606f845305dcbef7f206fc706328faf01bfe9 100644 (file)
@@ -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);