mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 12:05:33 +00:00
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:
parent
7cf8aa3d95
commit
df70c0c531
|
@ -212,7 +212,7 @@ namespace OpenTK
|
|||
Debug.Print(expt.ToString());
|
||||
throw;
|
||||
}
|
||||
OpenTK.OpenGL.GL.LoadAll();
|
||||
//OpenTK.OpenGL.GL.LoadAll();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue