From: Jarl Gullberg Date: Tue, 13 Jun 2017 20:34:26 +0000 (+0200) Subject: Revert "Converted GraphicsContextFlags into an auto-property." X-Git-Tag: v3.0.0~96^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=632c3f8722da93539986addfc5affabd8a6fcfbc;p=platform%2Fcore%2Fcsapi%2Fopentk.git Revert "Converted GraphicsContextFlags into an auto-property." This reverts commit be037bbdb0b61bd434ed5a7ab85a5261486063fd. --- diff --git a/src/OpenTK.GLWidget/GLWidget.cs b/src/OpenTK.GLWidget/GLWidget.cs index 67e51da..fd6f27f 100644 --- a/src/OpenTK.GLWidget/GLWidget.cs +++ b/src/OpenTK.GLWidget/GLWidget.cs @@ -57,6 +57,7 @@ namespace OpenTK private IGraphicsContext _GraphicsContext; private IWindowInfo _WindowInfo; + private GraphicsContextFlags _GraphicsContextFlags; private bool _Initialized; #endregion @@ -112,7 +113,17 @@ namespace OpenTK /// /// The set for this widget. /// - public GraphicsContextFlags GraphicsContextFlags { get; set; } + public GraphicsContextFlags GraphicsContextFlags + { + get + { + return _GraphicsContextFlags; + } + set + { + _GraphicsContextFlags = value; + } + } #endregion @@ -375,7 +386,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, this.GraphicsContextFlags); + _GraphicsContext = new GraphicsContext(graphicsMode, _WindowInfo, GlVersionMajor, GlVersionMinor, _GraphicsContextFlags); _GraphicsContext.MakeCurrent(_WindowInfo); if (GraphicsContext.ShareContexts)