mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:06:52 +00:00
Removed redudant GL.LoadAll call in WinGLNative
Added Glu.LoadAll call to GLControl.cs
This commit is contained in:
parent
d757447a8f
commit
45a0efd9d1
|
@ -15,6 +15,7 @@ using System.Windows.Forms;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
using OpenTK.Platform;
|
using OpenTK.Platform;
|
||||||
|
using OpenTK.OpenGL;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -100,7 +101,8 @@ namespace OpenTK
|
||||||
|
|
||||||
this.Visible = true;
|
this.Visible = true;
|
||||||
|
|
||||||
OpenTK.OpenGL.GL.LoadAll();
|
GL.LoadAll();
|
||||||
|
Glu.LoadAll();
|
||||||
this.OnResize(EventArgs.Empty);
|
this.OnResize(EventArgs.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -299,15 +299,14 @@ namespace OpenTK.Platform.Windows
|
||||||
glContext.PrepareContext(this.Handle);
|
glContext.PrepareContext(this.Handle);
|
||||||
glContext.CreateContext();
|
glContext.CreateContext();
|
||||||
//glContext.MakeCurrent();
|
//glContext.MakeCurrent();
|
||||||
OpenTK.OpenGL.GL.LoadAll();
|
GL.LoadAll();
|
||||||
|
Glu.LoadAll();
|
||||||
}
|
}
|
||||||
catch (ApplicationException expt)
|
catch (ApplicationException expt)
|
||||||
{
|
{
|
||||||
Debug.Print("Could not create opengl context, error: {0}", expt.ToString());
|
Debug.Print("Could not create opengl context, error: {0}", expt.ToString());
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
GL.LoadAll();
|
|
||||||
Glu.LoadAll();
|
|
||||||
|
|
||||||
if (this.Create != null)
|
if (this.Create != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue