Browse Source

Merge pull request #3940 from MarchingCube/fix-next-draw-as

Fix NextDrawAs in the DeferredRenderer
pull/3955/head
danwalmsley 6 years ago
committed by GitHub
parent
commit
2ab13a1991
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Visuals/Rendering/SceneGraph/DeferredDrawingContextImpl.cs

2
src/Avalonia.Visuals/Rendering/SceneGraph/DeferredDrawingContextImpl.cs

@ -364,7 +364,7 @@ namespace Avalonia.Rendering.SceneGraph
public int DrawOperationIndex { get; }
}
private void Add(IDrawOperation node)
private void Add<T>(T node) where T : class, IDrawOperation
{
using (var refCounted = RefCountable.Create(node))
{

Loading…
Cancel
Save