mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-23 05:38:30 +00:00
Add buffer flag selection.
This commit is contained in:
parent
c485327da5
commit
e879b73145
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using Gdk;
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
using OpenTK.Platform;
|
using OpenTK.Platform;
|
||||||
|
|
||||||
|
@ -104,8 +104,24 @@ namespace OpenTK
|
||||||
Samples = graphicsMode.Samples;
|
Samples = graphicsMode.Samples;
|
||||||
Stereo = graphicsMode.Stereo;
|
Stereo = graphicsMode.Stereo;
|
||||||
|
|
||||||
SetRequiredVersion(glVersionMajor, glVersionMinor);
|
|
||||||
GraphicsContextFlags = graphicsContextFlags;
|
GraphicsContextFlags = graphicsContextFlags;
|
||||||
|
|
||||||
|
SetRequiredVersion(glVersionMajor, glVersionMinor);
|
||||||
|
|
||||||
|
if (graphicsMode.Depth > 0)
|
||||||
|
{
|
||||||
|
HasDepthBuffer = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (graphicsMode.Stencil > 0)
|
||||||
|
{
|
||||||
|
HasStencilBuffer = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (graphicsMode.ColorFormat.Alpha > 0)
|
||||||
|
{
|
||||||
|
HasAlpha = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue