Browse Source

Merge pull request #9900 from SimonCropp/broken-GetRequiredService-for-_useGL-

broken GetRequiredService for _useGL
pull/9949/head
Max Katz 3 years ago
committed by GitHub
parent
commit
0291c7e685
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Browser/Avalonia.Browser/AvaloniaView.cs

2
src/Browser/Avalonia.Browser/AvaloniaView.cs

@ -106,7 +106,7 @@ namespace Avalonia.Browser
_dpi = DomHelper.ObserveDpi(OnDpiChanged);
_useGL = AvaloniaLocator.Current.GetRequiredService<IPlatformGraphics>() != null;
_useGL = AvaloniaLocator.Current.GetService<IPlatformGraphics>() != null;
if (_useGL)
{

Loading…
Cancel
Save