Hooked up new loading mechanism

This commit is contained in:
Stefanos A. 2013-11-24 13:58:12 +01:00
parent 825ed3621f
commit 657c447737
2 changed files with 11 additions and 6 deletions

View file

@ -38,12 +38,12 @@ namespace OpenTK.Platform
{
Stopwatch time = Stopwatch.StartNew();
new OpenTK.Graphics.OpenGL.GL();
new OpenTK.Graphics.OpenGL4.GL();
new OpenTK.Graphics.ES10.GL();
new OpenTK.Graphics.ES11.GL();
new OpenTK.Graphics.ES20.GL();
new OpenTK.Graphics.ES30.GL();
new OpenTK.Graphics.OpenGL.GL().LoadEntryPoints();
new OpenTK.Graphics.OpenGL4.GL().LoadEntryPoints();
new OpenTK.Graphics.ES10.GL().LoadEntryPoints();
new OpenTK.Graphics.ES11.GL().LoadEntryPoints();
new OpenTK.Graphics.ES20.GL().LoadEntryPoints();
new OpenTK.Graphics.ES30.GL().LoadEntryPoints();
Debug.Print("Bindings loaded in {0} ms.", time.Elapsed.TotalMilliseconds);
}

View file

@ -26,6 +26,7 @@
#endregion
using System;
using System.Diagnostics;
using OpenTK.Graphics;
namespace OpenTK.Platform
@ -35,10 +36,14 @@ namespace OpenTK.Platform
{
public override void LoadAll()
{
Stopwatch time = Stopwatch.StartNew();
new OpenTK.Graphics.ES10.GL().LoadEntryPoints();
new OpenTK.Graphics.ES11.GL().LoadEntryPoints();
new OpenTK.Graphics.ES20.GL().LoadEntryPoints();
new OpenTK.Graphics.ES30.GL().LoadEntryPoints();
Debug.Print("Bindings loaded in {0} ms.", time.Elapsed.TotalMilliseconds);
}
}
}