Skip to content

Commit

Permalink
feat: enable wgl in wasm demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitism committed Sep 1, 2024
1 parent 4a68c7c commit ffa494f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion demo/Ursa.Demo.Browser/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 ffa494f

Please sign in to comment.