Skip to content

Commit

Permalink
Merge pull request #8728 from jp2masa/gl-control-render-rect
Browse files Browse the repository at this point in the history
Fixed OpenGlControlBase render rect
  • Loading branch information
maxkatz6 authored and danwalmsley committed Aug 12, 2022
1 parent 7627db1 commit ff86693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.OpenGL/Controls/OpenGlControlBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public sealed override void Render(DrawingContext context)
_attachment.Present();
}

context.DrawImage(_bitmap, new Rect(_bitmap.Size), Bounds);
context.DrawImage(_bitmap, new Rect(_bitmap.Size), new Rect(Bounds.Size));
base.Render(context);
}

Expand Down

0 comments on commit ff86693

Please sign in to comment.