mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Fixed double ImGuiLayer
This commit is contained in:
@@ -4,7 +4,16 @@ namespace GlitchyEngine
|
||||
{
|
||||
public class LayerStack
|
||||
{
|
||||
private List<Layer> _layers = new List<Layer>() ~ DeleteContainerAndItems!(_);
|
||||
private List<Layer> _layers = new List<Layer>() ~ delete _;
|
||||
|
||||
public ~this()
|
||||
{
|
||||
for(let layer in _layers)
|
||||
{
|
||||
layer.OnDetach();
|
||||
delete layer;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Marks the index of the last layer.
|
||||
|
||||
Reference in New Issue
Block a user