Rendering - Made the way layering is rendered 99.5% less stupid

This commit is contained in:
Robert committed 2021-03-23 00:08:00 +01:00
1 parent c444ff4e59
commit fa49424cf6
11 files changed
+99 -83

No files matched your search

@@ -0,0 +1,16 @@
using SkiaSharp;
namespace Artemis.Core
{
internal static class SKPaintExtensions
{
internal static void DisposeSelfAndProperties(this SKPaint paint)
{
paint.ImageFilter?.Dispose();
paint.ColorFilter?.Dispose();
paint.MaskFilter?.Dispose();
paint.Shader?.Dispose();
paint.Dispose();
}
}
}