From accdc55731f7f89306c0ad38d371f3286f31640d Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Tue, 13 Jun 2017 22:34:29 +0200 Subject: [PATCH] Revert "Introduced optional parameters for GLWidget constructor, removing a redundant constructor." This reverts commit 1634a652c2638669d1c725b13fdab782dcd96470. --- src/OpenTK.GLWidget/GLWidget.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/OpenTK.GLWidget/GLWidget.cs b/src/OpenTK.GLWidget/GLWidget.cs index fd6f27f..7d9d3a1 100644 --- a/src/OpenTK.GLWidget/GLWidget.cs +++ b/src/OpenTK.GLWidget/GLWidget.cs @@ -137,6 +137,12 @@ namespace OpenTK { } + /// Constructs a new GLWidget using a given GraphicsMode + public GLWidget(GraphicsMode graphicsMode) + : this(graphicsMode, 1, 0, GraphicsContextFlags.Default) + { + } + /// /// Initializes a new instance of the class. /// @@ -146,7 +152,7 @@ namespace OpenTK /// /// Any flags which should be used during initialization of the . /// - public GLWidget(GraphicsMode graphicsMode, int glVersionMajor = 1, int glVersionMinor = 0, GraphicsContextFlags graphicsContextFlags = GraphicsContextFlags.Default) + public GLWidget(GraphicsMode graphicsMode, int glVersionMajor, int glVersionMinor, GraphicsContextFlags graphicsContextFlags) { this.DoubleBuffered = false; -- 2.7.4