From be037bbdb0b61bd434ed5a7ab85a5261486063fd Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Tue, 13 Jun 2017 22:11:19 +0200 Subject: [PATCH] Converted GraphicsContextFlags into an auto-property. --- src/OpenTK.GLWidget/GLWidget.cs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/OpenTK.GLWidget/GLWidget.cs b/src/OpenTK.GLWidget/GLWidget.cs index fd6f27f..67e51da 100644 --- a/src/OpenTK.GLWidget/GLWidget.cs +++ b/src/OpenTK.GLWidget/GLWidget.cs @@ -57,7 +57,6 @@ namespace OpenTK private IGraphicsContext _GraphicsContext; private IWindowInfo _WindowInfo; - private GraphicsContextFlags _GraphicsContextFlags; private bool _Initialized; #endregion @@ -113,17 +112,7 @@ namespace OpenTK /// /// The set for this widget. /// - public GraphicsContextFlags GraphicsContextFlags - { - get - { - return _GraphicsContextFlags; - } - set - { - _GraphicsContextFlags = value; - } - } + public GraphicsContextFlags GraphicsContextFlags { get; set; } #endregion @@ -386,7 +375,7 @@ namespace OpenTK _WindowInfo = XWindowInfoInitializer.Initialize(graphicsMode, this.Display.Handle, this.Screen.Number, this.Window.Handle, this.RootWindow.Handle); // GraphicsContext - _GraphicsContext = new GraphicsContext(graphicsMode, _WindowInfo, GlVersionMajor, GlVersionMinor, _GraphicsContextFlags); + _GraphicsContext = new GraphicsContext(graphicsMode, _WindowInfo, GlVersionMajor, GlVersionMinor, this.GraphicsContextFlags); _GraphicsContext.MakeCurrent(_WindowInfo); if (GraphicsContext.ShareContexts) -- 2.7.4