mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-09 01:35:34 +00:00
Introduced optional parameters for GLWidget constructor, removing a redundant constructor.
This commit is contained in:
parent
5abcfedf11
commit
1634a652c2
|
@ -137,12 +137,6 @@ namespace OpenTK
|
|||
{
|
||||
}
|
||||
|
||||
/// <summary>Constructs a new GLWidget using a given GraphicsMode</summary>
|
||||
public GLWidget(GraphicsMode graphicsMode)
|
||||
: this(graphicsMode, 1, 0, GraphicsContextFlags.Default)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GLWidget"/> class.
|
||||
/// </summary>
|
||||
|
@ -152,7 +146,7 @@ namespace OpenTK
|
|||
/// <param name="graphicsContextFlags">
|
||||
/// Any flags which should be used during initialization of the <see cref="GraphicsContext"/>.
|
||||
/// </param>
|
||||
public GLWidget(GraphicsMode graphicsMode, int glVersionMajor, int glVersionMinor, GraphicsContextFlags graphicsContextFlags)
|
||||
public GLWidget(GraphicsMode graphicsMode, int glVersionMajor = 1, int glVersionMinor = 0, GraphicsContextFlags graphicsContextFlags = GraphicsContextFlags.Default)
|
||||
{
|
||||
this.DoubleBuffered = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue