1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 21:38:38 +00:00

Always recreate LED group when recreating surface

This commit is contained in:
Robert 2023-10-09 20:47:09 +02:00
parent 3e88aa37ff
commit ccd79de67c

View File

@ -159,6 +159,8 @@ internal sealed class SurfaceManager : IDisposable
_texture = new SKTexture(GraphicsContext, width, height, RenderScale, _devices);
_textureBrush.Texture = _texture;
UpdateLedGroup();
return _texture;
}
@ -168,10 +170,7 @@ internal sealed class SurfaceManager : IDisposable
{
SKTexture? texture = _texture;
if (texture == null || texture.IsInvalid)
{
texture = CreateTexture();
UpdateLedGroup();
}
// Prepare a canvas
SKCanvas canvas = texture.Surface.Canvas;