mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 12:15:37 +00:00
Removed redudant GL.LoadAll call in WinGLNative
Added Glu.LoadAll call to GLControl.cs
This commit is contained in:
parent
c610a8b707
commit
7f5bdc2fdc
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue