Browse Source
Merge pull request #4566 from AvaloniaUI/fixes/ui-thread-rendertimer-windows
use uithread render timer on windows. to prevent opengl crashing.
pull/4567/head
danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Windows/Avalonia.Win32/Win32Platform.cs
|
|
|
@ -88,7 +88,7 @@ namespace Avalonia.Win32 |
|
|
|
.Bind<IPlatformSettings>().ToConstant(s_instance) |
|
|
|
.Bind<IPlatformThreadingInterface>().ToConstant(s_instance) |
|
|
|
.Bind<IRenderLoop>().ToConstant(new RenderLoop()) |
|
|
|
.Bind<IRenderTimer>().ToConstant(new DefaultRenderTimer(60)) |
|
|
|
.Bind<IRenderTimer>().ToConstant(new UiThreadRenderTimer(60)) |
|
|
|
.Bind<ISystemDialogImpl>().ToSingleton<SystemDialogImpl>() |
|
|
|
.Bind<IWindowingPlatform>().ToConstant(s_instance) |
|
|
|
.Bind<PlatformHotkeyConfiguration>().ToSingleton<PlatformHotkeyConfiguration>() |
|
|
|
|