diff options
author | Bottinator22 <59987380+Bottinator22@users.noreply.github.com> | 2024-12-18 18:13:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-18 18:13:34 -0800 |
commit | 2ffe1146866193998e65129decc378a9665fc3a9 (patch) | |
tree | 91c824e663ba71238daf413d268a30b72a2c1088 /source/client/StarClientApplication.cpp | |
parent | 1d80822543c5f7cf949385a4a920538027f8f4ea (diff) |
Update StarClientApplication.cpp
Diffstat (limited to 'source/client/StarClientApplication.cpp')
-rw-r--r-- | source/client/StarClientApplication.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index e22093c..81b217f 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -406,10 +406,12 @@ void ClientApplication::render() { auto size = Vec2F(renderer->screenSize()); auto quad = renderFlatRect(RectF::withSize(size / -2, size), Vec4B::filled(0), 0.0f); for (auto& layer : m_postProcessLayers) { - for (unsigned i = 0; i < layer.passes; i++) { - for (auto& effect : layer.effects) { - renderer->switchEffectConfig(effect); - renderer->render(quad); + if (layer.group ? layer.group->enabled : true) { + for (unsigned i = 0; i < layer.passes; i++) { + for (auto& effect : layer.effects) { + renderer->switchEffectConfig(effect); + renderer->render(quad); + } } } } |