diff --git a/Source/OpenTK/Platform/DesktopGraphicsContext.cs b/Source/OpenTK/Platform/DesktopGraphicsContext.cs index f6ec5f8d..a9d4f513 100644 --- a/Source/OpenTK/Platform/DesktopGraphicsContext.cs +++ b/Source/OpenTK/Platform/DesktopGraphicsContext.cs @@ -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); } diff --git a/Source/OpenTK/Platform/EmbeddedGraphicsContext.cs b/Source/OpenTK/Platform/EmbeddedGraphicsContext.cs index fb98bb8d..1f69ea41 100644 --- a/Source/OpenTK/Platform/EmbeddedGraphicsContext.cs +++ b/Source/OpenTK/Platform/EmbeddedGraphicsContext.cs @@ -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); } } } \ No newline at end of file