Use OpenGL rendering
This commit is contained in:
+12
-1
@@ -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
|
||||||
|
]
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user