Browse Source

Merge branch 'master' into TCCUseTwoPresenters

pull/11721/head
Daniel Mayost 3 years ago
committed by GitHub
parent
commit
b26f9ea4e2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Base/Rendering/Composition/Server/ServerCompositionTarget.cs

4
src/Avalonia.Base/Rendering/Composition/Server/ServerCompositionTarget.cs

@ -128,7 +128,9 @@ namespace Avalonia.Rendering.Composition.Server
if (_renderTarget?.IsCorrupted == true)
{
_renderTarget!.Dispose();
_layer?.Dispose();
_layer = null;
_renderTarget.Dispose();
_renderTarget = null;
_redrawRequested = true;
}

Loading…
Cancel
Save