Bladeren bron

Make SharpDX dispose of its resources.

Steven Kirk 9 jaren geleden
bovenliggende
commit
9ebfa5cd0c
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      src/Windows/Avalonia.Direct2D1/Direct2D1Platform.cs

+ 1 - 0
src/Windows/Avalonia.Direct2D1/Direct2D1Platform.cs

@@ -43,6 +43,7 @@ namespace Avalonia.Direct2D1
             .BindToSelf(s_d2D1Factory)
             .BindToSelf(s_dwfactory)
             .BindToSelf(s_imagingFactory);
+            SharpDX.Configuration.EnableReleaseOnFinalizer = true;
 
         public IBitmapImpl CreateBitmap(int width, int height)
         {