From 475e7ea797e602daef306b01bde23ea4bc67961d Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Sun, 24 Nov 2013 13:57:08 +0100 Subject: [PATCH] Allow overriding of loading methods --- Source/OpenTK/BindingsBase.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/OpenTK/BindingsBase.cs b/Source/OpenTK/BindingsBase.cs index 690825ec..6c9c1fd2 100644 --- a/Source/OpenTK/BindingsBase.cs +++ b/Source/OpenTK/BindingsBase.cs @@ -125,7 +125,7 @@ namespace OpenTK #region LoadEntryPoints - internal void LoadEntryPoints() + internal virtual void LoadEntryPoints() { // Using reflection is more than 3 times faster than directly loading delegates on the first // run, probably due to code generation overhead. Subsequent runs are faster with direct loading @@ -166,7 +166,7 @@ namespace OpenTK #region LoadEntryPoint - internal bool LoadEntryPoint(string function) + internal virtual bool LoadEntryPoint(string function) { FieldInfo f = DelegatesClass.GetField(function, BindingFlags.Static | BindingFlags.NonPublic); if (f == null) @@ -189,7 +189,7 @@ namespace OpenTK #region GetExtensionDelegate // Creates a System.Delegate that can be used to call a dynamically exported OpenGL function. - internal Delegate GetExtensionDelegate(string name, Type signature) + internal virtual Delegate GetExtensionDelegate(string name, Type signature) { IntPtr address = GetAddress(name);