Fixed memory leak when deleting Effect

This commit is contained in:
Simon Lübeß
2024-08-24 20:09:22 +02:00
parent b98de9835d
commit ad73abd4ea
10 changed files with 139 additions and 176 deletions
-13
View File
@@ -7,18 +7,6 @@ using GlitchyEngine.Content;
namespace GlitchyEngine.Renderer;
public enum TextureDimension
{
Unknown,
Texture1D,
Texture2D,
Texture3D,
TextureCube,
Texture1DArray,
Texture2DArray,
TextureCubeArray
}
public class Effect : Asset
{
internal VertexShader _vs ~ _?.ReleaseRef();
@@ -43,7 +31,6 @@ public class Effect : Asset
delete _;
};
protected Dictionary<String, String> _engineBuffers = new .() ~ DeleteDictionaryAndKeysAndValues!(_);
BufferCollection _bufferCollection ~ _.ReleaseRef();