Remove properties that are no longer relevant or used.
authorJarl Gullberg <jarl.gullberg@gmail.com>
Fri, 15 Sep 2017 10:39:47 +0000 (12:39 +0200)
committerJarl Gullberg <jarl.gullberg@gmail.com>
Fri, 15 Sep 2017 10:39:47 +0000 (12:39 +0200)
src/OpenTK.GLWidget/GLWidget.cs

index dbae8da..2bc1dd9 100644 (file)
@@ -29,42 +29,6 @@ namespace OpenTK
         private bool _Initialized = false;
 
         /// <summary>
-        /// Use a single buffer versus a double buffer.
-        /// </summary>
-        [Browsable(true)]
-        public bool SingleBuffer { get; set; }
-
-        /// <summary>
-        /// Color Buffer Bits-Per-Pixel
-        /// </summary>
-        public int ColorBPP { get; set; }
-
-        /// <summary>
-        /// Accumulation Buffer Bits-Per-Pixel
-        /// </summary>
-        public int AccumulatorBPP { get; set; }
-
-        /// <summary>
-        /// Depth Buffer Bits-Per-Pixel
-        /// </summary>
-        public int DepthBPP { get; set; }
-
-        /// <summary>
-        /// Stencil Buffer Bits-Per-Pixel
-        /// </summary>
-        public int StencilBPP { get; set; }
-
-        /// <summary>
-        /// Number of samples
-        /// </summary>
-        public int Samples { get; set; }
-
-        /// <summary>
-        /// Indicates if steropic renderering is enabled
-        /// </summary>
-        public bool Stereo { get; set; }
-
-        /// <summary>
         /// The set <see cref="GraphicsContextFlags"/> for this widget.
         /// </summary>
         public GraphicsContextFlags GraphicsContextFlags { get; set; }
@@ -96,14 +60,6 @@ namespace OpenTK
         {
             this.DoubleBuffered = false;
 
-            SingleBuffer = graphicsMode.Buffers == 1;
-            ColorBPP = graphicsMode.ColorFormat.BitsPerPixel;
-            AccumulatorBPP = graphicsMode.AccumulatorFormat.BitsPerPixel;
-            DepthBPP = graphicsMode.Depth;
-            StencilBPP = graphicsMode.Stencil;
-            Samples = graphicsMode.Samples;
-            Stereo = graphicsMode.Stereo;
-
             GraphicsContextFlags = graphicsContextFlags;
 
             SetRequiredVersion(glVersionMajor, glVersionMinor);
@@ -335,29 +291,6 @@ namespace OpenTK
         {
             _Initialized = true;
 
-            // If this looks uninitialized...  initialize.
-            if (ColorBPP == 0)
-            {
-                ColorBPP = 32;
-
-                if (DepthBPP == 0)
-                {
-                    DepthBPP = 16;
-                }
-            }
-
-            ColorFormat colorBufferColorFormat = new ColorFormat(ColorBPP);
-
-            ColorFormat accumulationColorFormat = new ColorFormat(AccumulatorBPP);
-
-            int buffers = 2;
-            if (SingleBuffer)
-            {
-                buffers--;
-            }
-
-            GraphicsMode graphicsMode = new GraphicsMode(colorBufferColorFormat, DepthBPP, StencilBPP, Samples, accumulationColorFormat, buffers, Stereo);
-
             if (Configuration.RunningOnWindows)
             {
                 Console.WriteLine("OpenTK running on windows");