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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
|
{ |
|
|
|
|