Browse Source

Make SharpDX dispose of its resources.

scenegraph-after-breakage
Steven Kirk 10 years ago
parent
commit
9ebfa5cd0c
  1. 1
      src/Windows/Avalonia.Direct2D1/Direct2D1Platform.cs

1
src/Windows/Avalonia.Direct2D1/Direct2D1Platform.cs

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

Loading…
Cancel
Save