Browse Source

Dispose check

Krzysztof Krysiński 4 months ago
parent
commit
1d3695c451
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Drawie
  2. 1 1
      src/PixiEditor/Views/Rendering/Scene.cs

+ 1 - 1
src/Drawie

@@ -1 +1 @@
-Subproject commit d749d83f6090e058c9a0d68620316e32d753a977
+Subproject commit ea188f49d32efa4875d5ae292d80759e85af5945

+ 1 - 1
src/PixiEditor/Views/Rendering/Scene.cs

@@ -618,7 +618,7 @@ internal class Scene : Zoombox.Zoombox, ICustomHitTest
 
 
     public void QueueNextFrame()
     public void QueueNextFrame()
     {
     {
-        if (initialized && !updateQueued && compositor != null)
+        if (initialized && !updateQueued && compositor != null && surface is { IsDisposed: false })
         {
         {
             updateQueued = true;
             updateQueued = true;
             compositor.RequestCompositionUpdate(update);
             compositor.RequestCompositionUpdate(update);