Revert "Converted GraphicsContextFlags into an auto-property."
This reverts commit be037bbdb0
.
This commit is contained in:
parent
12ed99e9eb
commit
632c3f8722
1 changed files with 13 additions and 2 deletions
|
@ -57,6 +57,7 @@ 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
|
||||||
|
@ -112,7 +113,17 @@ 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 { get; set; }
|
public GraphicsContextFlags GraphicsContextFlags
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _GraphicsContextFlags;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_GraphicsContextFlags = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -375,7 +386,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, this.GraphicsContextFlags);
|
_GraphicsContext = new GraphicsContext(graphicsMode, _WindowInfo, GlVersionMajor, GlVersionMinor, _GraphicsContextFlags);
|
||||||
_GraphicsContext.MakeCurrent(_WindowInfo);
|
_GraphicsContext.MakeCurrent(_WindowInfo);
|
||||||
|
|
||||||
if (GraphicsContext.ShareContexts)
|
if (GraphicsContext.ShareContexts)
|
||||||
|
|
Loading…
Reference in a new issue