Skip to content

Commit

Permalink
Merge pull request AvaloniaUI#5155 from AvaloniaUI/fixes/egl-init-win…
Browse files Browse the repository at this point in the history
…dows

[Windows] only enable egl by default on platforms where its stable.
  • Loading branch information
danwalmsley authored Dec 10, 2020
2 parents cba74d5 + d20f90f commit 9af2cfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions samples/ControlCatalog.NetCore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ public static AppBuilder BuildAvaloniaApp()
})
.With(new Win32PlatformOptions
{
EnableMultitouch = true,
AllowEglInitialization = true
EnableMultitouch = true
})
.UseSkia()
.UseManagedSystemDialogs()
Expand Down
3 changes: 2 additions & 1 deletion src/Windows/Avalonia.Win32/Win32Platform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using Avalonia.Rendering;
using Avalonia.Threading;
using Avalonia.Utilities;
using Avalonia.Win32;
using Avalonia.Win32.Input;
using Avalonia.Win32.Interop;
using static Avalonia.Win32.Interop.UnmanagedMethods;
Expand All @@ -39,7 +40,7 @@ public static T UseWin32<T>(
public class Win32PlatformOptions
{
public bool UseDeferredRendering { get; set; } = true;
public bool AllowEglInitialization { get; set; } = true;
public bool AllowEglInitialization { get; set; } = Win32Platform.WindowsVersion > new Version(6, 1);
public bool? EnableMultitouch { get; set; }
public bool OverlayPopups { get; set; }
public bool UseWgl { get; set; }
Expand Down

0 comments on commit 9af2cfa

Please sign in to comment.