Browse Source
Update src/Web/Avalonia.Web.Blazor/AvaloniaView.razor.cs
pull/7409/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
src/Web/Avalonia.Web.Blazor/AvaloniaView.razor.cs
|
|
|
@ -301,6 +301,12 @@ namespace Avalonia.Web.Blazor |
|
|
|
|
|
|
|
_topLevel.Renderer.Start(); |
|
|
|
|
|
|
|
// Note: this is technically a hack, but it's a kinda unique use case when
|
|
|
|
// we want to blit the previous frame
|
|
|
|
// renderer doesn't have much control over the render target
|
|
|
|
// we render on the UI thread
|
|
|
|
// We also don't want to have it as a meaningful public API.
|
|
|
|
// Therefore we have InternalsVisibleTo hack here.
|
|
|
|
if (_topLevel.Renderer is DeferredRenderer dr) |
|
|
|
{ |
|
|
|
dr.Render(true); |
|
|
|
|