diff --git a/demo/Semi.Avalonia.Demo.Web/Program.cs b/demo/Semi.Avalonia.Demo.Web/Program.cs index 62d4e940..8d553f9a 100644 --- a/demo/Semi.Avalonia.Demo.Web/Program.cs +++ b/demo/Semi.Avalonia.Demo.Web/Program.cs @@ -11,7 +11,10 @@ internal sealed partial class Program { private static Task Main(string[] args) => BuildAvaloniaApp() .WithSourceHanSansCNFont() - .StartBrowserAppAsync("out"); + .StartBrowserAppAsync("out", new BrowserPlatformOptions + { + RenderingMode = [ BrowserRenderingMode.WebGL2, BrowserRenderingMode.WebGL1, BrowserRenderingMode.Software2D], + }); public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure();