Revert "Introduced optional parameters for GLWidget constructor, removing a redundant...
authorJarl Gullberg <jarl.gullberg@gmail.com>
Tue, 13 Jun 2017 20:34:29 +0000 (22:34 +0200)
committerJarl Gullberg <jarl.gullberg@gmail.com>
Tue, 13 Jun 2017 20:34:29 +0000 (22:34 +0200)
This reverts commit 1634a652c2638669d1c725b13fdab782dcd96470.

src/OpenTK.GLWidget/GLWidget.cs

index fd6f27f..7d9d3a1 100644 (file)
@@ -137,6 +137,12 @@ 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>
@@ -146,7 +152,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 = 1, int glVersionMinor = 0, GraphicsContextFlags graphicsContextFlags = GraphicsContextFlags.Default)
+        public GLWidget(GraphicsMode graphicsMode, int glVersionMajor, int glVersionMinor, GraphicsContextFlags graphicsContextFlags)
         {
             this.DoubleBuffered = false;