Merge branch 'master' of https://github.com/thefiddler/opentk into modes

This commit is contained in:
parallels 2013-11-09 17:15:05 +01:00
commit 7f921dae47
2 changed files with 10 additions and 3 deletions

View file

@ -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)

View file

@ -49,9 +49,16 @@ namespace OpenTK.Platform.SDL2
public readonly static Version Version;
static SDL()
{
try
{
GetVersion(out Version);
}
catch
{
// nom nom
}
}
#region Functions