Use OpenGL rendering

This commit is contained in:
2026-04-08 12:54:18 +09:00
parent 0783e0b544
commit 600ae58f25
+12 -1
View File
@@ -17,5 +17,16 @@ class Program
=> AppBuilder.Configure<App>() => AppBuilder.Configure<App>()
.UsePlatformDetect() .UsePlatformDetect()
.WithInterFont() .WithInterFont()
.LogToTrace(); .LogToTrace()
.With(new AvaloniaNativePlatformOptions
{
// https://github.com/AvaloniaUI/Avalonia/issues/20971
RenderingMode =
[
// put OpenGL first, to have higher priority over Metal
AvaloniaNativeRenderingMode.OpenGl,
AvaloniaNativeRenderingMode.Metal,
AvaloniaNativeRenderingMode.Software
]
});
} }