Jelajahi Sumber

Dispose check

Krzysztof Krysiński 4 bulan lalu
induk
melakukan
1d3695c451
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  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()
     {
-        if (initialized && !updateQueued && compositor != null)
+        if (initialized && !updateQueued && compositor != null && surface is { IsDisposed: false })
         {
             updateQueued = true;
             compositor.RequestCompositionUpdate(update);