I get the following error:
'Error: lib/slab/Internal/Core/DrawCommands.lua:356: attempt to index local 'Layer' (a nil value)'
when I override the love.run function as seen here
In my current project I work around this by calling Slab.Update(0) after initializing Slab in love.load.
I also remove the check for DidDraw inside Slab.Draw since I notice some flickering if Slab.Draw() is called in an update loop where Slab.Update() got skipped.
Slab Version: 0.7.2
I get the following error: 'Error: lib/slab/Internal/Core/DrawCommands.lua:356: attempt to index local 'Layer' (a nil value)' when I override the love.run function as seen here
Here is a minimal reproduction main.lua file I believe this is caused by Slab.Draw() being called before the first Slab.Update() call.
In my current project I work around this by calling Slab.Update(0) after initializing Slab in love.load. I also remove the check for DidDraw inside Slab.Draw since I notice some flickering if Slab.Draw() is called in an update loop where Slab.Update() got skipped.