From d6265d21900051439b98a693a5f0041ab89cde79 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 29 Sep 2007 15:27:18 +0000 Subject: [PATCH] Fixed a bug in GL.Load() where the GetProcAddress function was never called. --- Source/OpenTK/OpenGL/GLHelper.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/OpenTK/OpenGL/GLHelper.cs b/Source/OpenTK/OpenGL/GLHelper.cs index 71da4bfe..f23ba626 100644 --- a/Source/OpenTK/OpenGL/GLHelper.cs +++ b/Source/OpenTK/OpenGL/GLHelper.cs @@ -314,14 +314,13 @@ namespace OpenTK.OpenGL return false; Delegate old = f.GetValue(null) as Delegate; - Delegate @new = f.GetValue(null) as Delegate; + Delegate @new = GetDelegate(f.Name, f.FieldType); if (old.Target != @new.Target) { f.SetValue(null, @new); rebuildExtensionList = true; - return true; } - return false; + return @new != null; } #endregion