1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-24 17:26:41 +00:00

Don't render the dark layer when its corresponding tile layer is hidden.

This would have the old (as it was last updated when visible) dark layer
stuck on the screen.

Regression from 09edbf49fd
This commit is contained in:
fgenesis 2024-05-08 04:39:59 +02:00
parent 4ebce3e36b
commit 0f98893f28

View file

@ -713,8 +713,14 @@ static bool beginAfterEffectCapture(const RenderState& rs)
static bool preRenderAfterEffectLayer(const RenderState& rs) static bool preRenderAfterEffectLayer(const RenderState& rs)
{ {
if(core->darkLayer.isUsed()) if(core->darkLayer.isUsed()
// LR_DARK_LAYER is remapped to LR_ELEMENTS13 via renderLayerOrder,
// need to actually check LR_DARK_LAYER here
&& core->getRenderObjectLayer(LR_DARK_LAYER)->visible
)
{
core->darkLayer.render(rs); core->darkLayer.render(rs);
}
if(core->afterEffectManager) if(core->afterEffectManager)
{ {