Converted GraphicsContextFlags into an auto-property.

This commit is contained in:
Jarl Gullberg 2017-06-13 22:11:19 +02:00
parent 1634a652c2
commit be037bbdb0
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23

View file

@ -57,7 +57,6 @@ namespace OpenTK
private IGraphicsContext _GraphicsContext; private IGraphicsContext _GraphicsContext;
private IWindowInfo _WindowInfo; private IWindowInfo _WindowInfo;
private GraphicsContextFlags _GraphicsContextFlags;
private bool _Initialized; private bool _Initialized;
#endregion #endregion
@ -113,17 +112,7 @@ namespace OpenTK
/// <summary> /// <summary>
/// The set <see cref="GraphicsContextFlags"/> for this widget. /// The set <see cref="GraphicsContextFlags"/> for this widget.
/// </summary> /// </summary>
public GraphicsContextFlags GraphicsContextFlags public GraphicsContextFlags GraphicsContextFlags { get; set; }
{
get
{
return _GraphicsContextFlags;
}
set
{
_GraphicsContextFlags = value;
}
}
#endregion #endregion
@ -386,7 +375,7 @@ namespace OpenTK
_WindowInfo = XWindowInfoInitializer.Initialize(graphicsMode, this.Display.Handle, this.Screen.Number, this.Window.Handle, this.RootWindow.Handle); _WindowInfo = XWindowInfoInitializer.Initialize(graphicsMode, this.Display.Handle, this.Screen.Number, this.Window.Handle, this.RootWindow.Handle);
// GraphicsContext // GraphicsContext
_GraphicsContext = new GraphicsContext(graphicsMode, _WindowInfo, GlVersionMajor, GlVersionMinor, _GraphicsContextFlags); _GraphicsContext = new GraphicsContext(graphicsMode, _WindowInfo, GlVersionMajor, GlVersionMinor, this.GraphicsContextFlags);
_GraphicsContext.MakeCurrent(_WindowInfo); _GraphicsContext.MakeCurrent(_WindowInfo);
if (GraphicsContext.ShareContexts) if (GraphicsContext.ShareContexts)