mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Rendering - Made the way layering is rendered 99.5% less stupid
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user