Browse Source

Remove DirectX 12 feature level choices. Device will be created with feature levels up to DirectX 11.1 (Windows 8), which is all we use.

Jeremy Koritzinsky 9 years ago
parent
commit
619e64ef1d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/Windows/Avalonia.Direct2D1/Direct2D1Platform.cs

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

@@ -45,8 +45,6 @@ namespace Avalonia.Direct2D1
         {
             var featureLevels = new[]
             {
-                SharpDX.Direct3D.FeatureLevel.Level_12_1,
-                SharpDX.Direct3D.FeatureLevel.Level_12_0,
                 SharpDX.Direct3D.FeatureLevel.Level_11_1,
                 SharpDX.Direct3D.FeatureLevel.Level_11_0,
                 SharpDX.Direct3D.FeatureLevel.Level_10_1,
@@ -58,7 +56,7 @@ namespace Avalonia.Direct2D1
 
             using (var d3dDevice = new SharpDX.Direct3D11.Device(
                 SharpDX.Direct3D.DriverType.Hardware,
-                SharpDX.Direct3D11.DeviceCreationFlags.BgraSupport,
+                SharpDX.Direct3D11.DeviceCreationFlags.BgraSupport | SharpDX.Direct3D11.DeviceCreationFlags.VideoSupport,
                 featureLevels))
             {
                 s_dxgiDevice = d3dDevice.QueryInterface<SharpDX.DXGI.Device>();