diff --git a/Source/Examples/OpenGL/1.x/Picking.cs b/Source/Examples/OpenGL/1.x/Picking.cs index f9ccc2d6..d3b9a0c5 100644 --- a/Source/Examples/OpenGL/1.x/Picking.cs +++ b/Source/Examples/OpenGL/1.x/Picking.cs @@ -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) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2.cs b/Source/OpenTK/Platform/SDL2/Sdl2.cs index 0efe3c8a..352e085d 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2.cs @@ -50,7 +50,14 @@ namespace OpenTK.Platform.SDL2 static SDL() { - GetVersion(out Version); + try + { + GetVersion(out Version); + } + catch + { + // nom nom + } } #region Functions