mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-08-04 14:31:14 +00:00
Merge branch 'master' of https://github.com/thefiddler/opentk into modes
This commit is contained in:
commit
7f921dae47
|
@ -235,7 +235,7 @@ namespace Examples.Tutorial
|
|||
protected override void OnRenderFrame(FrameEventArgs e)
|
||||
{
|
||||
GL.Color3(Color.White);
|
||||
GL.Enable(EnableCap.ColorArray);
|
||||
GL.EnableClientState(EnableCap.ColorArray);
|
||||
|
||||
#region Pass 1: Draw Object and pick Triangle
|
||||
GL.ClearColor(1f, 1f, 1f, 1f); // clears to uint.MaxValue
|
||||
|
@ -261,7 +261,7 @@ namespace Examples.Tutorial
|
|||
#endregion Pass 1: Draw Object and pick Triangle
|
||||
|
||||
GL.Color3(Color.White);
|
||||
GL.Disable(EnableCap.ColorArray);
|
||||
GL.DisableClientState(EnableCap.ColorArray);
|
||||
|
||||
#region Pass 2: Draw Shape
|
||||
if (SelectedTriangle == uint.MaxValue)
|
||||
|
|
|
@ -49,9 +49,16 @@ namespace OpenTK.Platform.SDL2
|
|||
public readonly static Version Version;
|
||||
|
||||
static SDL()
|
||||
{
|
||||
try
|
||||
{
|
||||
GetVersion(out Version);
|
||||
}
|
||||
catch
|
||||
{
|
||||
// nom nom
|
||||
}
|
||||
}
|
||||
|
||||
#region Functions
|
||||
|
||||
|
|
Loading…
Reference in a new issue