Browse Source

Fix egl opengl initialization on win32

pull/12056/head
Max Katz 3 years ago
parent
commit
124ad88924
  1. 4
      src/Windows/Avalonia.Win32/Win32GlManager.cs

4
src/Windows/Avalonia.Win32/Win32GlManager.cs

@ -20,6 +20,10 @@ static class Win32GlManager
{
AvaloniaLocator.CurrentMutable.Bind<IPlatformGraphics>().ToConstant(gl);
}
if (gl is IPlatformGraphicsOpenGlContextFactory openGlFactory)
{
AvaloniaLocator.CurrentMutable.Bind<IPlatformGraphicsOpenGlContextFactory>().ToConstant(openGlFactory);
}
return gl;
}

Loading…
Cancel
Save