Skip to content

Commit

Permalink
Ignore unavailability of a required service because tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kekekeks committed Mar 4, 2024
1 parent 1fac7ec commit 38da7ff
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ public ServerCompositionTarget(ServerCompositor compositor, Func<IEnumerable<obj
_compositor = compositor;
_surfaces = surfaces;
_diagnosticTextRenderer = diagnosticTextRenderer;
var platformRender = AvaloniaLocator.Current.GetRequiredService<IPlatformRenderInterface>();
_dirtyRect = compositor.Options.UseRegionDirtyRectClipping == true && platformRender.SupportsRegions
var platformRender = AvaloniaLocator.Current.GetService<IPlatformRenderInterface>();
_dirtyRect = compositor.Options.UseRegionDirtyRectClipping == true &&
platformRender?.SupportsRegions == true
? new RegionDirtyRectTracker(platformRender)
: new DirtyRectTracker();
Id = Interlocked.Increment(ref s_nextId);
Expand Down

0 comments on commit 38da7ff

Please sign in to comment.