From c47eacee059bc1c0d9b2479d1652aabb17147f90 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 7 Oct 2009 11:23:40 +0000 Subject: [PATCH] * OpenGL/GLHelper.cs: Removed static GetAddress method in favor of implementation inherited from GraphicsBindingsBase. Disabled unused code. --- Source/OpenTK/Graphics/OpenGL/GLHelper.cs | 34 ++--------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs index 5fdc8ccb..90d1fd3e 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs @@ -52,9 +52,6 @@ namespace OpenTK.Graphics.OpenGL internal const string Library = "opengl32.dll"; - static StringBuilder sb = new StringBuilder(); - static object gl_lock = new object(); - private static SortedList AvailableExtensions = new SortedList(); #endregion @@ -202,7 +199,7 @@ namespace OpenTK.Graphics.OpenGL } #endregion -#endif + #region private static void BuildExtensionList() /// @@ -335,34 +332,7 @@ namespace OpenTK.Graphics.OpenGL } #endregion - - #region GetAddress - - /// - /// Retrieves the entry point for a dynamically exported OpenGL function. - /// - /// The function string for the OpenGL function (eg. "glNewList") - /// - /// An IntPtr contaning the address for the entry point, or IntPtr.Zero if the specified - /// OpenGL function is not dynamically exported. - /// - /// - /// - /// The Marshal.GetDelegateForFunctionPointer method can be used to turn the return value - /// into a call-able delegate. - /// - /// - /// This function is cross-platform. It determines the underlying platform and uses the - /// correct wgl, glx or agl GetAddress function to retrieve the function pointer. - /// - /// - private static IntPtr GetAddress(string function) - { - return (GraphicsContext.CurrentContext as IGraphicsContextInternal).GetAddress(function); - } - - #endregion - +#endif #endregion #region --- GL Overloads ---