From 849484c2889af0a92a48171a4aa60186e962cf2b Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 19 Aug 2009 10:47:12 +0000 Subject: [PATCH] Ensure OpenTK.Graphics.GL.LoadAll() is called in OpenTK.Compatibility. --- Source/Compatibility/Graphics/GL/GLHelper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Compatibility/Graphics/GL/GLHelper.cs b/Source/Compatibility/Graphics/GL/GLHelper.cs index 8800856d..5375e3c2 100644 --- a/Source/Compatibility/Graphics/GL/GLHelper.cs +++ b/Source/Compatibility/Graphics/GL/GLHelper.cs @@ -79,6 +79,8 @@ namespace OpenTK.Graphics glClass = typeof(GL); delegatesClass = glClass.GetNestedType("Delegates", BindingFlags.Static | BindingFlags.NonPublic); importsClass = glClass.GetNestedType("Imports", BindingFlags.Static | BindingFlags.NonPublic); + + LoadAll(); // Ensure this class is loaded, since it is no longer visible to the GraphicsContext.LoadAll() method. } #endregion