diff --git a/ScreenCast.Win/Services/ScreenCapturerWin.cs b/ScreenCast.Win/Services/ScreenCapturerWin.cs index d88df033..18800411 100644 --- a/ScreenCast.Win/Services/ScreenCapturerWin.cs +++ b/ScreenCast.Win/Services/ScreenCapturerWin.cs @@ -42,7 +42,6 @@ namespace Remotely.ScreenCast.Win.Services { private readonly Dictionary bitBltScreens = new Dictionary(); private readonly Dictionary directxScreens = new Dictionary(); - private bool directXCapable = true; public ScreenCapturerWin() { Init(); @@ -124,10 +123,7 @@ namespace Remotely.ScreenCast.Win.Services PreviousFrame = new Bitmap(CurrentScreenBounds.Width, CurrentScreenBounds.Height, PixelFormat.Format32bppArgb); InitBitBlt(); - if (directXCapable) - { - InitDirectX(); - } + InitDirectX(); ScreenChanged?.Invoke(this, CurrentScreenBounds); } @@ -326,7 +322,6 @@ namespace Remotely.ScreenCast.Win.Services catch (Exception ex) { Logger.Write(ex); - directXCapable = false; } }