Skip to content

Commit

Permalink
Add inline explanation of this = default; assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Aug 15, 2023
1 parent 368ba59 commit 3da4187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Framework/Graphics/Rendering/Vertices/TexturedVertex2D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ public struct TexturedVertex2D : IEquatable<TexturedVertex2D>, IVertex
[Obsolete("Initialise this type with an IRenderer instead", true)]
public TexturedVertex2D()
{
this = default;
this = default; // explicitly initialise all members to default values
}

public TexturedVertex2D(IRenderer renderer)
{
this = default;
this = default; // explicitly initialise all members to default values
backbufferDrawDepth = renderer.BackbufferDrawDepth;
}

Expand Down

0 comments on commit 3da4187

Please sign in to comment.