From: Jarl Gullberg Date: Tue, 13 Jun 2017 20:34:29 +0000 (+0200) Subject: Revert "Introduced optional parameters for GLWidget constructor, removing a redundant... X-Git-Tag: v3.0.0~96^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=accdc55731f7f89306c0ad38d371f3286f31640d;p=platform%2Fcore%2Fcsapi%2Fopentk.git Revert "Introduced optional parameters for GLWidget constructor, removing a redundant constructor." This reverts commit 1634a652c2638669d1c725b13fdab782dcd96470. --- 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;