Skip to content

Commit

Permalink
feat: change render mode in browser demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitism committed Sep 1, 2024
1 parent f2bb8d8 commit cc7d55b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion demo/Semi.Avalonia.Demo.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<App>();
Expand Down

0 comments on commit cc7d55b

Please sign in to comment.