Removed redudant GL.LoadAll call in WinGLNative

Added Glu.LoadAll call to GLControl.cs
This commit is contained in:
the_fiddler 2007-09-02 23:04:11 +00:00
parent c610a8b707
commit 7f5bdc2fdc
2 changed files with 5 additions and 4 deletions

View file

@ -15,6 +15,7 @@ using System.Windows.Forms;
using System.Diagnostics;
using OpenTK.Platform;
using OpenTK.OpenGL;
#endregion
@ -100,7 +101,8 @@ namespace OpenTK
this.Visible = true;
OpenTK.OpenGL.GL.LoadAll();
GL.LoadAll();
Glu.LoadAll();
this.OnResize(EventArgs.Empty);
}

View file

@ -299,15 +299,14 @@ namespace OpenTK.Platform.Windows
glContext.PrepareContext(this.Handle);
glContext.CreateContext();
//glContext.MakeCurrent();
OpenTK.OpenGL.GL.LoadAll();
GL.LoadAll();
Glu.LoadAll();
}
catch (ApplicationException expt)
{
Debug.Print("Could not create opengl context, error: {0}", expt.ToString());
throw;
}
GL.LoadAll();
Glu.LoadAll();
if (this.Create != null)
{