Corrected a bug where GL.LoadAll wasn't called on time in X11GLNative.

Moved MakeCurrent call to X11GLNative and WinGLNative, instead of GameWindow.
This commit is contained in:
the_fiddler 2007-08-21 12:21:01 +00:00
parent fcc621c9e5
commit 951f14f459
3 changed files with 5 additions and 1 deletions

View file

@ -212,7 +212,7 @@ namespace OpenTK
Debug.Print(expt.ToString());
throw;
}
OpenTK.OpenGL.GL.LoadAll();
//OpenTK.OpenGL.GL.LoadAll();
}
else
{

View file

@ -290,6 +290,8 @@ namespace OpenTK.Platform.Windows
glContext = new WinGLContext(this.mode);
glContext.PrepareContext(this.Handle);
glContext.CreateContext();
//glContext.MakeCurrent();
OpenTK.OpenGL.GL.LoadAll();
}
catch (ApplicationException expt)
{

View file

@ -309,6 +309,8 @@ namespace OpenTK.Platform.X11
API.MapRaised(window.Display, window.Handle);
OpenTK.OpenGL.GL.LoadAll();
Debug.Unindent();
Debug.WriteLine("GameWindow creation completed successfully!");
exists = true;