From ed8e639ee3d03e6303df31e31625099e70f598a5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 13 Oct 2021 12:28:10 +0300 Subject: [PATCH] Respect enabled_methods in the Sky effect --- source/effects/sky.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.45.2